Comment 2 for bug 776860

Revision history for this message
Trent Apted (tapted) wrote :

oh, regarding:
Package: libboost1.42-dev 1.42.0-4ubuntu2 [modified: usr/include/boost/config/compiler/gcc.hpp]

*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).