Nameof Versions Save

Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum

v0.10.4

3 months ago

Release v0.10.4

  • Add sep param to nameof_enum_flag
  • Add support big enum range
  • Fix noexcept

v0.10.2

1 year ago

v0.10.1

2 years ago

Release v0.10.1

  • Add nameof_member
  • Fix warning (#31)
  • Fix std::array in some cases is missing constexpr on some of it's functions
  • Fix hard error if enum is empty or non-reflected
  • Fix using leak

v0.10.0

3 years ago

Release v0.10.0

  • Add way to switch std::string and std::string_view to custom type
  • Add syntax for defining custom enum and type names
  • Add NAMEOF_ENUM_FLAG
  • Add NAMEOF_SHORT_TYPE
  • Add NAMEOF_TYPE_RTTI, NAMEOF_FULL_TYPE_RTTI, NAMEOF_SHORT_TYPE_RTTI
  • Add NAMEOF_OPT_INSTALL option in CMakeLists.txt
  • Add detect values out of range: checks for a value at (range_min - 1) and (range_max + 1) and fails compilation with a static_assert if any value is found.
  • Fix hangs Intellisense
  • Fix compiler check
  • Fix build error in gcc
  • Fix build msvc with clang
  • Fix build error in clang
  • [breaking changes] enum_range moved to namespace magic_enum::customize

v0.9.4

3 years ago

Release v0.9.4

  • Add NAMEOF_TYPE_RTTI
  • Fix compiler checks

v0.9.3

4 years ago

Release v0.9.3

  • Fix some warnings.
  • nameof_type returns std::string_view and cache value.

v0.9.2

4 years ago

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.

v0.9.1

4 years ago

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.

v0.9.0

4 years ago

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.