Opened 12 years ago

Closed 12 years ago

#5319 closed Bugs (fixed)

BOOST_HAS_VARIADIC_TMPL defined in non-C++0x environment.

Reported by: Akira Takahashi <faithandbrave@…> Owned by: John Maddock
Milestone: To Be Determined Component: config
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

in boost/config/compiler/gcc.hpp

// Variadic templates compiler: 
//   http://www.generic-programming.org/~dgregor/cpp/variadic-templates.html
#  if defined(__VARIADIC_TEMPLATES) || (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4))
#    define BOOST_HAS_VARIADIC_TMPL
#  else
#    define BOOST_NO_VARIADIC_TEMPLATES
#  endif
#endif

Should add condition

defined(__GXX_EXPERIMENTAL_CXX0X__)

Change History (1)

comment:1 by John Maddock, 12 years ago

Resolution: fixed
Status: newclosed

(In [70019]) Don't enable GCC C++0x features in non-C++0x mode. Update tests to actually fail unless we're in C++0x mode. Fixes #5320. Fixes #5319.

Note: See TracTickets for help on using tickets.