Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's extra work, but you could use std::aligned_union<1, std::string, std::vector<Expression>, ...> to declare space for the union and then use placement new/manual destructor calls to initialize and destroy.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: