mirror of
https://github.com/boostorg/utility.git
synced 2025-10-26 22:11:46 +01:00
Add tests to ensure that string_view|ref from rvalue fails (whenever it can)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user