Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Configuration Macro

By default Boost.PFR auto-detects your compiler abilities and automatically defines the configuration macro into appropriate values. If you wish to override that behavior, just define:

Table 1.2. Macros

Macro name

Effect

BOOST_PFR_USE_CPP17

Define to 1 if you wish to use structured bindings and other C++17 features for reflection. Define to 0 otherwize.

BOOST_PFR_USE_LOOPHOLE

Define to 1 if you wish to exploit CWG 2118 for reflection. Define to 0 otherwize.


Note that disabling Loophole in C++14 significantly limitates the reflection abilities of the library. See next section for more info.


PrevUpHomeNext