From 06a1dbf4b82297d22917f2059013757fd3207a84 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 16 Mar 2014 20:48:58 +0400 Subject: [PATCH] Fixed compilation for C++03 compilers. --- src/formatter_parser.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/formatter_parser.cpp b/src/formatter_parser.cpp index 94a1b49..055eb4c 100644 --- a/src/formatter_parser.cpp +++ b/src/formatter_parser.cpp @@ -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 { }