Add a deleted constructor from nullptr_t to string_view; closes #113

This commit is contained in:
Peter Dimov
2022-09-18 13:53:55 +03:00
parent 162a4e1d24
commit 1fa592c9ec
3 changed files with 28 additions and 0 deletions

View File

@@ -403,6 +403,22 @@ public:
{
}
#if !defined(BOOST_NO_CXX11_NULLPTR)
# if !defined(BOOST_NO_CXX11_DELETED_FUNCTIONS)
basic_string_view( std::nullptr_t ) = delete;
# else
private:
basic_string_view( std::nullptr_t );
public:
# endif
#endif
// BOOST_CONSTEXPR basic_string_view& operator=( basic_string_view const& ) BOOST_NOEXCEPT & = default;
// conversions