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
The logic of our switchType thingy is very similar to std::visit and can be used today already by including DatatypeHelpers.hpp (public header on purpose). Maybe a wrapper around this would be a solution?
Otherwise, to use std::visit (which would be nice as it's well-documented STL code), we would have to use an actual std::variant somewhere, but it's probably doable too.
It would be great if we can design load routines that are variant-based.
That way, the user-side logic is more concise than knowing the exact type upfront.
Similar for attribute reads (where we already support some flexible casts).
The text was updated successfully, but these errors were encountered: