
23 Feb
2011
23 Feb
'11
2:18 p.m.
On Tue, Feb 22, 2011 at 5:06 PM, 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?
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