use using instead of typedef (and use base cstr)

This commit is contained in:
Laurent Rineau 2024-04-26 16:34:00 +02:00
parent 7579026503
commit 69aa7b878b
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@ template <typename Base>
class Base_with_time_stamp : public Base {
std::size_t time_stamp_ = -1;
public:
typedef CGAL::Tag_true Has_timestamp;
using Base::Base;
using Has_timestamp = CGAL::Tag_true;
std::size_t time_stamp() const {
return time_stamp_;