Skip to content

Commit a0e25ce

Browse files
GetName() for enum values, declare actual return type, as it is well known
Signed-off-by: Christian Parpart <[email protected]>
1 parent 125be08 commit a0e25ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/reflection-cpp/reflection.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ consteval std::string_view GetName()
683683

684684
template <auto E>
685685
requires(std::is_enum_v<decltype(E)>)
686-
consteval auto GetName()
686+
consteval std::string_view GetName()
687687
{
688688
#if defined(_MSC_VER) && !defined(__clang__)
689689
std::string_view str = REFLECTION_PRETTY_FUNCTION;

0 commit comments

Comments
 (0)