How to strictly compare two std::variant values?
I’m trying to write a generic operator==()
to compare two std::variant
s with the same signature. I need the comparison to be strict: first compare the index()
, then the contained value.
I’m trying to write a generic operator==()
to compare two std::variant
s with the same signature. I need the comparison to be strict: first compare the index()
, then the contained value.