3 ms·
You can trivially declare a variable without constructing it by wrapping it in an anonymous union. You'll have to destroy it yourself though because the compil
by gpderetta 9y ago
You can trivially declare a variable without constructing it by wrapping it in an anonymous union.
You'll have to destroy it yourself though because the compiler can't guarantee to be able to prove that it has been constructed at the end of scope. You can wrap it in something like boost optional to get safety.