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

Fix sample compilation

This commit is contained in:
bela
2023-11-30 11:41:58 +01:00
parent 8a0447b486
commit 16a97bb1f5

View File

@@ -106,6 +106,7 @@ void test_examples() {
//]
}
#if BOOST_PFR_CORE_NAME_ENABLED
{
//[pfr_quick_examples_get_name
// Get name of field by index
@@ -119,6 +120,7 @@ void test_examples() {
<< boost::pfr::get_name<1, sample>(); // Outputs: f1 f2
//]
}
#endif
#if BOOST_PFR_USE_CPP17 || BOOST_PFR_USE_LOOPHOLE
{