
Beman Dawes wrote:
On Wed, Mar 11, 2009 at 2:21 PM, Bo Persson <bop@gmb.dk> wrote:
Andrey Semashev wrote:
Beman Dawes wrote:
On Sun, Mar 8, 2009 at 12:08 PM, Andrey Semashev <andrey.semashev@gmail.com> wrote:
Is there a macro that shows if the "auto" keyword has C++0x meaning? Not yet. Care to submit one? Any suggestions for the naming? BOOST_NO_AUTO_DECLARATIONS? BOOST_NO_AUTO_MULTIDECLARATIONS?
Do any compilers support 0x auto? GCC 4.4 is supposed to support 0x auto (at least partially), but won't ship until summer IIRC. Yes, I'm too aware only of GCC 4.4, but it's a sufficient precedent. VS2010 is another one, with a ship date later than this summer but reasonably before 2010.
Ah! I'd forgotten VS2010 has C++0x auto support.
The macros went into trunk at revision 51733. I also enabled several 0x features for VS2010, as the configuration tests seem to pass on CTP version. One thing I'm not sure about is whether these features are supported for Codegear or Borland. It seems to include some 0x features, so I left these macros undefined for them. I'll see if the tests fail on these compilers and define the macros if needed. BTW: What's the difference between codegear.hpp and borland.hpp? Isn't it the same compiler?