Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ksherlock
on Feb 22, 2016
|
parent
|
context
|
favorite
| on:
Why C++ sucks (2016 edition)
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: