Skip to content

Commit b69df4e

Browse files
authored
Merge pull request #709 from AndreyG/master
Support ReSharper builtin for type name
2 parents e058a47 + ac92fdc commit b69df4e

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)