introspection: add example __PRETTY_FUNCTION__ values
This commit is contained in:
parent
dc46d2d52b
commit
813148ca51
@ -33,8 +33,12 @@ namespace cruft {
|
|||||||
std::string_view pretty_function (__PRETTY_FUNCTION__);
|
std::string_view pretty_function (__PRETTY_FUNCTION__);
|
||||||
|
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
|
// PRETTY_FUNCTION = std::string_view cruft::type_name() [T = std::__1::vector<int, std::__1::allocator<int> >]
|
||||||
|
|
||||||
std::string_view const prefix = "[T = ";
|
std::string_view const prefix = "[T = ";
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
|
// PRETTY_FUNCTION = "constexpr std::string_view cruft::type_name() [with T = std::__debug::vector<int>; std::string_view = std::basic_string_view<char>]"
|
||||||
|
|
||||||
std::string_view prefix = "[with T = ";
|
std::string_view prefix = "[with T = ";
|
||||||
#else
|
#else
|
||||||
#error "Unsupported compiler"
|
#error "Unsupported compiler"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user