From 3a4a85c42d383c330de673f734793bb594db2a62 Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Mon, 12 Feb 2024 10:17:53 +0100 Subject: [PATCH] Improve doc of 'HIGHFIVE_REGISTER_TYPE'. --- include/highfive/H5DataType.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 <> \