Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum
Release v0.10.4
Release v0.10.3
nameof_pointer
https://github.com/Neargye/nameof/pull/59
Release v0.10.2
nameof_enum_or
nameof_member
for mscv and c++20Release v0.10.1
nameof_member
Release v0.10.0
std::string
and std::string_view
to custom typeRelease v0.9.4
NAMEOF_TYPE_RTTI
Release v0.9.3
nameof_type
returns std::string_view
and cache value.Release v0.9.2
Add documentation.
nameof
and nameof_type
returns nameof::cstring
- constexpr implementation of an string.
Fix nameof_enum
cvref regression.
Fix nameof_enum
bug signed casts to unsigned in min()/max().
Fix nameof_enum
calculate reflected range.
Improving nameof_enum
compile times.
Release v0.9.1
Less bin size and overhead reduction, thanks @rollbear
nameof
and nameof_type
return static_string
convertible to std::string_view
or std::string
.
Add error msg unsupported compiler.
Marco NAMEOF_ENUM_SUPPORTED
and NAMEOF_TYPE_SUPPORTED
to check is compiler compatibility.
Fix type cast for unsigned enum.
Release v0.9.0
Fix build fail with sanitize, see https://github.com/Neargye/magic_enum/issues/6
Fix implicit conversion changes signedness.
Improving compile times.
[breaking changes] nameof_type
return name same as typeid.
NAMEOF_TYPE
- obtains string name of type, reference and cv-qualifiers are ignored.
[breaking changes] Rename NAMEOF_VAR_TYPE to NAMEOF_TYPE_EXPR.
NAMEOF_TYPE_EXPR
- obtains string name type of expression, reference and cv-qualifiers are ignored.
Add nameof_full_type
.
NAMEOF_FULL_TYPE
- obtains string name of full type, with reference and cv-qualifiers.
NAMEOF_FULL_TYPE_EXPR
- obtains string name full type of expression, with reference and cv-qualifiers.