Add tests to ensure that string_view|ref from rvalue fails (whenever it can)

This commit is contained in:
Marshall Clow
2017-02-13 10:25:04 -08:00
parent 9960d9f395
commit 00f02167e3
5 changed files with 65 additions and 8 deletions

View File

@@ -95,7 +95,7 @@ namespace boost {
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_CXX11_DELETED_FUNCTIONS)
// Constructing a string_ref from a temporary string is a bad idea
template<typename Allocator>
basic_string_ref(std::basic_string<charT, traits, Allocator>&& str)
basic_string_ref( std::basic_string<charT, traits, Allocator>&&)
= delete;
#endif