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
It would be nice to have a function with a signature like:
auto reflect::find<T>(std::string_view field_name)
returning the same thing we get in reflect::for_each and using a perfect hash to find the field (right now I just loop through all fields to find it)
The other possibility is something like reflect::enumerators but reflect::fields<I> which returns a lookup table between the field names and the field index which can be passed to reflect::get, reflect::member_name, reflect::type_name, etc. Which can be passed to a perfect hash library
The text was updated successfully, but these errors were encountered:
It would be nice to have a function with a signature like:
auto reflect::find<T>(std::string_view field_name)
returning the same thing we get in
reflect::for_each
and using a perfect hash to find the field (right now I just loop through all fields to find it)The other possibility is something like
reflect::enumerators
butreflect::fields<I>
which returns a lookup table between the field names and the field index which can be passed toreflect::get, reflect::member_name, reflect::type_name, etc
. Which can be passed to a perfect hash libraryThe text was updated successfully, but these errors were encountered: