diff --git a/boost/detail/scoped_enum_emulation.hpp b/boost/detail/scoped_enum_emulation.hpp index 0defa97..97230ac 100644 --- a/boost/detail/scoped_enum_emulation.hpp +++ b/boost/detail/scoped_enum_emulation.hpp @@ -62,7 +62,7 @@ namespace boost inline typename EC::enum_type native_value(EC e) { - return e.native(); + return e.native_(); } #else // BOOST_NO_SCOPED_ENUMS @@ -117,7 +117,7 @@ namespace boost enum enum_type #define BOOST_SCOPED_ENUM_DECLARE_END2() \ - enum_type native() const { return enum_type(v_); } \ + enum_type native_() const { return enum_type(v_); } \ friend bool operator ==(self_type lhs, enum_type rhs) { return enum_type(lhs.v_)==rhs; } \ friend bool operator ==(enum_type lhs, self_type rhs) { return lhs==enum_type(rhs.v_); } \ friend bool operator !=(self_type lhs, enum_type rhs) { return enum_type(lhs.v_)!=rhs; } \