clean-up
This commit is contained in:
parent
39f2036915
commit
edc3ba588d
1 changed files with 6 additions and 6 deletions
|
@ -379,20 +379,20 @@ NAMEOF_TYPE_CONSTEXPR cstring NameofType() {
|
||||||
|
|
||||||
template <typename T,
|
template <typename T,
|
||||||
typename = typename std::enable_if<!std::is_reference<T>::value>::type>
|
typename = typename std::enable_if<!std::is_reference<T>::value>::type>
|
||||||
constexpr cstring Nameof(const char* name, std::size_t size, bool with_suffix) {
|
constexpr cstring Nameof(const char* name, std::size_t size, bool with_suffix = false) {
|
||||||
return detail::NameofPretty({name, size}, with_suffix);
|
return detail::NameofPretty({name, size}, with_suffix);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
NAMEOF_TYPE_CONSTEXPR cstring NameofType() {
|
||||||
|
return true ? detail::NameofType<detail::nstd::identity<T>>() : detail::NameofType<detail::nstd::identity<T>>();
|
||||||
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
constexpr cstring NameofRaw(const char* name, std::size_t size) {
|
constexpr cstring NameofRaw(const char* name, std::size_t size) {
|
||||||
return {name, size};
|
return {name, size};
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T, typename H = detail::nstd::identity<T>>
|
|
||||||
NAMEOF_TYPE_CONSTEXPR cstring NameofType() {
|
|
||||||
return true ? detail::NameofType<H>() : detail::NameofType<H>();
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace nameof
|
} // namespace nameof
|
||||||
|
|
||||||
// Used to obtain the simple (unqualified) string name of a variable, member, function, macros.
|
// Used to obtain the simple (unqualified) string name of a variable, member, function, macros.
|
||||||
|
|
Loading…
Reference in a new issue