diff --git a/include/highfive/H5DataType.hpp b/include/highfive/H5DataType.hpp index b15f62165..68921c249 100644 --- a/include/highfive/H5DataType.hpp +++ b/include/highfive/H5DataType.hpp @@ -475,12 +475,15 @@ using FixedLenStringArray H5_DEPRECATED_USING("Use 'std::vector'.") /// This macro has to be called outside of any namespace. /// /// \code{.cpp} +/// namespace app { /// enum FooBar { FOO = 1, BAR = 2 }; /// EnumType create_enum_foobar() { /// return EnumType({{"FOO", FooBar::FOO}, /// {"BAR", FooBar::BAR}}); /// } -/// HIGHFIVE_REGISTER_TYPE(FooBar, create_enum_foobar) +/// } +/// +/// HIGHFIVE_REGISTER_TYPE(FooBar, ::app::create_enum_foobar) /// \endcode #define HIGHFIVE_REGISTER_TYPE(type, function) \ template <> \