diff --git a/include/rfl/Field.hpp b/include/rfl/Field.hpp index 30c09c12..2b7589f0 100644 --- a/include/rfl/Field.hpp +++ b/include/rfl/Field.hpp @@ -66,7 +66,7 @@ struct Field { const Type& get() const { return value_; } /// Returns the name of the fiels as a string. - static std::string name() const { return name_::str(); } + static std::string name() { return Name()::str(); } /// Returns the underlying object. Type& operator()() { return value_; }