Merge pull request #709 from AndreyG/master

Support ReSharper builtin for type name
This commit is contained in:
Mateusz Pusz
2025-07-10 08:58:44 +02:00
committed by GitHub

View File

@@ -20,6 +20,10 @@ namespace mp_units::detail {
template<typename T>
[[nodiscard]] consteval std::string_view type_name()
{
#ifdef __RESHARPER__
return __rscpp_type_name<T>();
#endif
std::string_view name, prefix, suffix;
#ifdef __clang__
name = __PRETTY_FUNCTION__;