Boost logo

Boost :

Subject: Re: [boost] [config] C++0X Compiler doesn't support classes with constructors in unions
From: Beman Dawes (bdawes_at_[hidden])
Date: 2011-02-23 09:18:13


On Tue, Feb 22, 2011 at 5:06 PM, Vicente Botet <vicente.botet_at_[hidden]>wrote:

>
> Hi,
>
> is there a macro that can be tested to know if a compiler doesn't support
> classes with constructors in unions?
>
>
No, and GCC 4.6 is supporting them. See
http://gcc.gnu.org/projects/cxx0x.html

The macro might be named BOOST_NO_UNRESTRICTED_UNIONS.

See http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2008/n2544.pdf

Do you have an actual need for such a macro? We only want to add macros that
will be actually used by Boost libraries.

If you do have a need, would you like to try your hand at providing the
macro, test cases, docs, etc?

--Beman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk