@smehringer This is how we can enforce the requirements on the field_types and other members of the options.
Since concept checks are lazy-evaluated when constraining something but not lazy-evaluated when in a static_assert or if constexpr, I had to add some metaprogramming voodoo. The overloaded template is really useful in general though, I am surprised we didn't have that in SeqAn3, yet. (or maybe I was just too stupid to find it)
@smehringer This is how we can enforce the requirements on the field_types and other members of the options.
Since concept checks are lazy-evaluated when constraining something but not lazy-evaluated when in a
static_assert
orif constexpr
, I had to add some metaprogramming voodoo. Theoverloaded
template is really useful in general though, I am surprised we didn't have that in SeqAn3, yet. (or maybe I was just too stupid to find it)If you have any questions, please let me know!