Fix compilation problems with clang

Apparently, clang presents itself as gcc 4.2 even though it supports the final version of rvalue references. Restrict the workaround to gcc only.
This commit is contained in:
Andrey Semashev
2014-07-16 16:43:35 +04:00
parent 1d41a328f7
commit 40387ef654

View File

@ -25,7 +25,7 @@ namespace detail
#if !defined( BOOST_NO_CXX11_RVALUE_REFERENCES )
#if defined( __GNUC__ ) && __GNUC__ * 100 + __GNUC_MINOR__ <= 404
#if defined( BOOST_GCC ) && __GNUC__ * 100 + __GNUC_MINOR__ <= 404
// GCC 4.4 supports an outdated version of rvalue references and creates a copy of the forwarded object.
// This results in warnings 'returning reference to temporary'. Therefore we use a special version similar to std::forward.