Is there a <cross-platform> way to check if a class member variable is contexpr?
Backstory, writing a metaprogramming library, and trying to write a concept/trait requiring that a type has a member variable defined as: `static constexpr /** Type **/ value = /** value **/;`
This concept would be a building block for defining what valid metafunctions/predicates/etc.s are.
I know how to test for a `constexpr` member _function_
I know how to test for the existence of a member variable.
I just can't figure out the right technique(hack)for testing for a `constexpr` member variable.
Posted Jan 31, 2024, 11:05 PM UTC
614