2
0
mirror of https://github.com/boostorg/pfr.git synced 2026-01-19 04:22:13 +00:00

Addressing the limitation of get_name

This commit is contained in:
bela
2023-11-30 10:09:09 +01:00
parent 98789f610a
commit 5b55480c65
4 changed files with 60 additions and 14 deletions

View File

@@ -106,11 +106,7 @@ void test_examples() {
//]
}
// Disabled from testing since it's unportable
#if 0
{
// Keep in mind that it's unportable code
// You should move this structure somewhere outside of function scope
//[pfr_quick_examples_get_name
// Get name of field by index
@@ -123,7 +119,6 @@ void test_examples() {
<< boost::pfr::get_name<1, sample>(); // Outputs: f1 f2
//]
}
#endif
#if BOOST_PFR_USE_CPP17 || BOOST_PFR_USE_LOOPHOLE
{