You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to understand is_reflectable, but I fail to get what to pass as second argument. My case looks like this:
template <class RowType>
class static_results {
static_assert(pfr::is_pfr_reflectable<RowType, Something>::value, "RowType must be reflectable");
// Implementation
};
I want to check that my user type provided me with a RowType that is a structure that can be reflected, i.e. I can call structure_to_tuple, for_each_field and friends on it.
The text was updated successfully, but these errors were encountered:
But it looks like it only returns a suitable value on C++17 and above. Otherwise it returns always false. From reading the code, it looks like implicit reflection is referring to the structured bindings reflection technique available only on C++17. However, this is never stated in the docs, and the "always return false" behavior is surprising.
I've been trying to understand
is_reflectable
, but I fail to get what to pass as second argument. My case looks like this:I want to check that my user type provided me with a
RowType
that is a structure that can be reflected, i.e. I can callstructure_to_tuple
,for_each_field
and friends on it.The text was updated successfully, but these errors were encountered: