r/cpp • u/_VZ_ wx | soci | swig • Jun 17 '15
Standardizing Variant: Difficult Decisions
https://www.justsoftwaresolutions.co.uk/cplusplus/standardizing-variant.html
34
Upvotes
r/cpp • u/_VZ_ wx | soci | swig • Jun 17 '15
View all comments
Show parent comment
3
u/sbabbi Jun 17 '15
I actually implemented a variant for fun a while ago. I went with this solution, and still believe it is the only logical way to implement the assignment. Who the hell writes a type that is not
nothrow_move_ constructible, seriously?