2
0
mirror of https://github.com/boostorg/log.git synced 2026-02-13 00:22:22 +00:00

Fixed compilation for C++03 compilers.

This commit is contained in:
Andrey Semashev
2014-03-16 20:48:58 +04:00
parent e8f62b8050
commit 06a1dbf4b8

View File

@@ -155,7 +155,11 @@ struct literal_formatter
typedef std::basic_string< char_type > string_type;
typedef basic_formatting_ostream< char_type > stream_type;
explicit literal_formatter(BOOST_RV_REF(string_type) str) : m_str(boost::move(str))
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
explicit literal_formatter(string_type&& str) : m_str(boost::move(str))
#else
explicit literal_formatter(string_type const& str) : m_str(str)
#endif
{
}