From: Arnaud Giersch Date: Tue, 12 Mar 2019 16:43:38 +0000 (+0100) Subject: Clang is picky. X-Git-Tag: v3_22~111 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/905948d05c644e30242007ee7fea0f0e1254452e Clang is picky. error: local variable value will be copied despite being returned by name [-Werror,-Wreturn-std-move] --- diff --git a/include/xbt/config.hpp b/include/xbt/config.hpp index 1a04a570f9..b6f60f00f6 100644 --- a/include/xbt/config.hpp +++ b/include/xbt/config.hpp @@ -41,7 +41,7 @@ inline std::string const& to_string(std::string const& value) } inline std::string to_string(std::string&& value) { - return value; + return std::move(value); } // Set default