[Bug c++/43915] Compiler flags error: error: invalid initialization of reference of type 'boost::thread&&' from expression of type 'boost::thread'

redi at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri May 14 15:36:00 GMT 2010



------- Comment #12 from redi at gcc dot gnu dot org  2010-05-14 15:36 -------
(In reply to comment #11)
> 
> 2. Modify gcc.hpp to disable the conditional compilation of rvalue references
> (temporarily, until that part of the code works with g++)
> diff gcc.hpp.orig gcc.hpp
> 124c124,125
> # define BOOST_HAS_RVALUE_REFS
> // # define BOOST_HAS_RVALUE_REFS
> # define BOOST_NO_RVALUE_REFERENCES

Or you can do it without editing the boost headers by defining
BOOST_COMPILER_CONFIG to refer to a modified version ofthe gcc.hpp header


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43915



More information about the Gcc-bugs mailing list