File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
include/mrdocs/Metadata/Symbol Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ implementation-defined:
1515 - ' mrdocs::dom::detail'
1616exclude-symbols :
1717 - ' boost::describe'
18+ - ' boost::describe:**'
1819multipage : true
1920generator : adoc
2021cmake : ' -D MRDOCS_DOCUMENTATION_BUILD=ON'
Original file line number Diff line number Diff line change 2121namespace mrdocs {
2222
2323/* * Convert a Boost.Describe'd enumerator to string form.
24+
25+ @param e The enumerator to convert.
26+ @return The string form of the enumerator.
2427*/
2528template <typename Enum>
2629 requires std::is_enum_v<Enum>
30+ && boost::describe::has_describe_enumerators<Enum>
2731std::string
28- toString (Enum e) noexcept
32+ toString (Enum e)
2933{
3034 std::string result;
3135 boost::mp11::mp_for_each<
3236 boost::describe::describe_enumerators<Enum>>(
3337 [&](auto const & D)
3438 {
35- using Descriptor = std::decay_t <decltype (D)>;
36- if (Descriptor::value == e)
39+ if (D.value == e)
3740 {
38- result = toKebabCase (Descriptor:: name);
41+ result = toKebabCase (D. name );
3942 }
4043 });
4144
You can’t perform that action at this time.
0 commit comments