Skip to content

Commit ac92fdc

Browse files
committed
support ReSharper builtin for type name
1 parent e058a47 commit ac92fdc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/include/mp-units/ext/type_name.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ namespace mp_units::detail {
2020
template<typename T>
2121
[[nodiscard]] consteval std::string_view type_name()
2222
{
23+
#ifdef __RESHARPER__
24+
return __rscpp_type_name<T>();
25+
#endif
26+
2327
std::string_view name, prefix, suffix;
2428
#ifdef __clang__
2529
name = __PRETTY_FUNCTION__;

0 commit comments

Comments
 (0)