Skip to content

Releases: apolukhin/pfr_non_boost

2.2.0

23 Nov 17:23
Compare
Choose a tag to compare

Major changes:

  • Field names reflection. Added new constexpr pfr::get_name<N, T>() function that returns a std::string_view with a name of field at index N of an aggregate T. Requires C++20. PFR_CORE_NAME_ENABLED is defined to 1 if the functionality is available. Many thanks to Denis Mikhailov, Bela Schaum and X-Ryl669 for the PR PR#129 and implementation ideas.

  • for_each_field() is now constexpr for C++17. Many thanks to Alexander Karatarakis for the PR PR#134.

2.0.3

02 Oct 11:59
Compare
Choose a tag to compare
  • Added missing #include <memory> for inclusion of std::addressof
  • Fixed -Wzero-length-array warning when dealing with empty aggregates
  • Fixed compilation on msvc compilers <= 1920 (thanks to Alexey Romanov aka @alexey-romanov)
  • Added basic CMakeLists.txt support (thanks to @pdimov aka Peter Dimov)
  • Multiple improvements for docs, including links to https://github.com/apolukhin/pfr_non_boost
  • Added misc/strip_boost_namespace.sh script to remove boost:: and BOOST_ prefixes