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 don't know if this is intended behavior, since I couldn't find anything in the docs. I was expecting that this:
auto t = pfr::structure_to_tuple(42);
Produced a compile-time error. As long as the argument is a scalar, it's accepted, producing a std::tuple<int>, in the above case. From the static_asserts in the code, this may be intended, but is pretty surprising behavior.
The text was updated successfully, but these errors were encountered:
I don't know if this is intended behavior, since I couldn't find anything in the docs. I was expecting that this:
Produced a compile-time error. As long as the argument is a scalar, it's accepted, producing a
std::tuple<int>
, in the above case. From thestatic_assert
s in the code, this may be intended, but is pretty surprising behavior.The text was updated successfully, but these errors were encountered: