mirror of
https://github.com/boostorg/core.git
synced 2025-11-28 21:30:09 +01:00
Add a deleted constructor from nullptr_t to string_view; closes #113
This commit is contained in:
10
test/sv_nullptr_fail.cpp
Normal file
10
test/sv_nullptr_fail.cpp
Normal file
@@ -0,0 +1,10 @@
|
||||
// Copyright 2022 Peter Dimov
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// https://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/core/detail/string_view.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
return boost::core::string_view( nullptr ).size() == 0;
|
||||
}
|
||||
Reference in New Issue
Block a user