r/cpp • u/_VZ_ wx | soci | swig • Jun 17 '15
Standardizing Variant: Difficult Decisions
https://www.justsoftwaresolutions.co.uk/cplusplus/standardizing-variant.html
32
Upvotes
r/cpp • u/_VZ_ wx | soci | swig • Jun 17 '15
View all comments
Show parent comment
2
u/eric_niebler Jun 18 '15
Do you really want nothing to happen when you visit a variant that has been made invalid by a failed move? Nothing? Don't you think this would be more likely to hide bugs than avoid them? IMO it would be better to permit the implementation to ASSERT and find your bug for you.