r/cpp • u/_VZ_ wx | soci | swig • Jun 17 '15
Standardizing Variant: Difficult Decisions
https://www.justsoftwaresolutions.co.uk/cplusplus/standardizing-variant.html
31
Upvotes
r/cpp • u/_VZ_ wx | soci | swig • Jun 17 '15
View all comments
Show parent comment
2
u/minno Hobbyist, embedded developer Jun 18 '15
Could you explain why those containers can't be moved without possibly throwing exceptions? As I understand them, default-construction followed by an elementwise swap should be a valid move constructor.