mirror of
https://github.com/boostorg/core.git
synced 2025-11-29 22:00:17 +01:00
Add a deleted constructor from nullptr_t to string_view; closes #113
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user