mirror of
https://github.com/boostorg/log.git
synced 2026-02-01 20:42:18 +00:00
Make better use of NRVO on compilers that support it.
This commit is contained in:
@@ -127,7 +127,7 @@ BOOST_LOG_API format_description< CharT > parse_format(const CharT* begin, const
|
||||
if (literal_start_pos < literal_chars_size)
|
||||
descr.format_elements.push_back(format_element::literal(literal_start_pos, literal_chars_size - literal_start_pos));
|
||||
|
||||
return boost::move(descr);
|
||||
return BOOST_LOG_NRVO_RESULT(descr);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user