Commit Graph

6 Commits

Author SHA1 Message Date
John McCall
6e4c83d30b Remove the need for magic numbers when making an ExternalUnion. NFC. 2017-07-27 22:52:51 -04:00
John McCall
2b71710794 Add ExternalUnion::resetToEmpty, which transitions the union from
a known-non-empty state to a known-empty state.
2017-07-15 01:12:55 -04:00
John McCall
65d8c9c9c6 Build fix on systems without std::is_trivially_copyable. 2017-07-09 01:05:06 -04:00
John McCall
0efcc0860e Minor enhancements to ExternalUnion, NFC:
- add the ability to assert triviality
- add the ability to construct via list-initialization (T{x,y})
2017-07-08 21:38:13 -04:00
John McCall
5684996d05 Fix non-asserts builds of ExternalUnion. 2017-04-26 18:54:25 -04:00
John McCall
f0801832e3 Add a convenient class for defining unions whose discriminator
is stored externally.
2017-04-26 14:15:44 -04:00