
22 Feb
2011
22 Feb
'11
11 p.m.
On 22 February 2011 16:06, Vicente Botet <vicente.botet@wanadoo.fr> wrote:
Hi,
is there a macro that can be tested to know if a compiler doesn't support classes with constructors in unions?
What compiler(s) implement this as an extension? It isn't allowed in C++03 either: "An object of a class with a non-trivial constructor, a non-trivial copy constructor, a non-trivial destructor, or a non-trivial copy assignment operator cannot be a member of a union, nor can an array of such objects." -- Nevin ":-)" Liber <mailto:nevin@eviloverlord.com> (847) 691-1404