*After* generating the compile error, I commented out `# define BOOST_HAS_RVALUE_REFS` in
#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 2)) && defined(__GXX_EXPERIMENTAL_CXX0X__)
// C++0x features are only enabled when -std=c++0x or -std=gnu++0x are
// passed on the command line, which in turn defines
// __GXX_EXPERIMENTAL_CXX0X__.
# define BOOST_HAS_DECLTYPE
//# define BOOST_HAS_RVALUE_REFS
# define BOOST_HAS_STATIC_ASSERT
# define BOOST_HAS_VARIADIC_TMPL
#else
With this change, test.cpp compiles.
Sadly, there's no compile flag I can pass in along with `-std=c++0x` to achieve a similar effect (i.e. without editing gcc.hpp).
oh, regarding: boost/config/ compiler/ gcc.hpp]
Package: libboost1.42-dev 1.42.0-4ubuntu2 [modified: usr/include/
*After* generating the compile error, I commented out `# define BOOST_HAS_ RVALUE_ REFS` in
#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 2)) && defined( __GXX_EXPERIMEN TAL_CXX0X_ _) TAL_CXX0X_ _. RVALUE_ REFS STATIC_ ASSERT VARIADIC_ TMPL
// C++0x features are only enabled when -std=c++0x or -std=gnu++0x are
// passed on the command line, which in turn defines
// __GXX_EXPERIMEN
# define BOOST_HAS_DECLTYPE
//# define BOOST_HAS_
# define BOOST_HAS_
# define BOOST_HAS_
#else
With this change, test.cpp compiles.
Sadly, there's no compile flag I can pass in along with `-std=c++0x` to achieve a similar effect (i.e. without editing gcc.hpp).