Skip to content

Commit 4cdaadb

Browse files
authored
Merge 2021-06 LWG Motion 14
P2166R1 A Proposal to Prohibit std::basic_string and std::basic_strin…
2 parents a6da723 + 327e917 commit 4cdaadb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/strings.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,7 @@
824824
constexpr explicit basic_string(const T& t, const Allocator& a = Allocator());
825825
constexpr basic_string(const charT* s, size_type n, const Allocator& a = Allocator());
826826
constexpr basic_string(const charT* s, const Allocator& a = Allocator());
827+
constexpr basic_string(nullptr_t) = delete;
827828
constexpr basic_string(size_type n, charT c, const Allocator& a = Allocator());
828829
template<class InputIterator>
829830
constexpr basic_string(InputIterator begin, InputIterator end,
@@ -840,6 +841,7 @@
840841
template<class T>
841842
constexpr basic_string& operator=(const T& t);
842843
constexpr basic_string& operator=(const charT* s);
844+
constexpr basic_string& operator=(nullptr_t) = delete;
843845
constexpr basic_string& operator=(charT c);
844846
constexpr basic_string& operator=(initializer_list<charT>);
845847

@@ -4088,6 +4090,7 @@
40884090
constexpr basic_string_view(const basic_string_view&) noexcept = default;
40894091
constexpr basic_string_view& operator=(const basic_string_view&) noexcept = default;
40904092
constexpr basic_string_view(const charT* str);
4093+
constexpr basic_string_view(nullptr_t) = delete;
40914094
constexpr basic_string_view(const charT* str, size_type len);
40924095
template<class It, class End>
40934096
constexpr basic_string_view(It begin, End end);

0 commit comments

Comments
 (0)