id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 11740,string_ref not working correctly with rvalue of std::string,steweg@…,No-Maintainer,"This is currently allowed: boost::string_ref something; something = ""temp""; // works ok something = std::string(""temp""); //doesn't work corretly while it should not be a should only be: boost::string_ref something; something = ""temp""; // works ok std::string tempStr(""temp""); something = tempStr; // works ok Current version is pointing to buffer that is no longer part of any std::string, therefore if you use something like valgrind it will trigger and error. Attached is a simple patch that prevent this.",Bugs,closed,,utility,Boost 1.59.0,Problem,fixed,string_ref,