![]() |
Home | Libraries | People | FAQ | More |
pfr::is_reflectable
// In header: <boost/include/pfr/traits_fwd.hpp> template<typename T, typename WhatFor> struct is_reflectable { };
Has a static const member variable value
when it known that type T can or can't be reflected using Boost.PFR; otherwise, there is no member variable. Every user may(and in some difficult cases - should) specialize is_reflectable on his own.
Example:
namespace pfr { template<class All> struct is_reflectable<A, All> : std::false_type {}; // 'A' won't be interpreted as reflectable everywhere template<> struct is_reflectable<B, boost_fusion_tag> : std::false_type {}; // 'B' won't be interpreted as reflectable in only Boost Fusion }}
![]() |
Note |
---|---|
is_reflectable affects is_implicitly_reflectable, the decision made by is_reflectable has more priority than is_implicitly_reflectable, because is_reflectable is more sharp than is_implicitly_reflectable |