r/cpp • u/_VZ_ wx | soci | swig • Jun 17 '15
Standardizing Variant: Difficult Decisions
https://www.justsoftwaresolutions.co.uk/cplusplus/standardizing-variant.html
29
Upvotes
r/cpp • u/_VZ_ wx | soci | swig • Jun 17 '15
View all comments
Show parent comment
2
u/suspiciously_calm Jun 17 '15
I don't like that the first typename has a special role. Also I agree with /u/F-J-W that having an empty state that can occurr, but only rarely and we kinda try to avoid and discourage it but not completely, is a bad thing.
I disagrees that it complicates matters. Accessing an empty variant is no different than accessing one which currently holds the wrong type.
Basically, I agree with everything /u/F-J-W says.