Closed artemp closed 7 years ago
Also if we want to be C++17 compatible'ish we need other functionality (like variant_size
), too, no?
@daniel-j-h - thanks, I'll take a look and update tomorrow.
@daniel-j-h
re: variant_size - yep, good call I'll work on a separate PR. General strategy is to add new features when user(s) ask for it, but variant_size
compliment variant_alternative
somewhat so we should add it I think.
Note to myself : consider using built-in __type_pack_element
when available (e.g clang)
835ebc19321c6a9696a2072b7fbd5ca3de818860 adds variant_size
support as a part of this PR.
NOTE: variant_size_v
is commented out as we're sticking to c++11 for the time being.
…ference.com/w/cpp/utility/variant/variant_alternative)