Skip to content

Commit 158d894

Browse files
committed
Improve discussion in 4294 by adding definition of char-like type
1 parent 68903e6 commit 158d894

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

xml/issue4294.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ static_assert( ! std::is_constructible_v<std::bitset<1>, NonTrivial*&gt
2121
<p>
2222
The problem is that the `bitset(const CharT*)` constructor tries to instantiate
2323
<code>basic_string_view&lt;NonTrivial&gt;</code> to find its `size_type`,
24-
and that instantiation might ill-formed (e.g. if `std::basic_string_view` or
24+
and that instantiation might ill-formed, e.g. if `std::basic_string_view` or
2525
`std::char_traits` has a static assert enforcing the requirement for their
26-
character type to be sufficiently char-like (<sref ref="[strings.general]"/>).
26+
character type to be sufficiently char-like. <sref ref="[strings.general]"/>
27+
defines a char-like type as "any non-array trivially copyable standard-layout
28+
(<sref ref="[basic.types.general]"/>) type `T`
29+
where <code>is_trivially_default_constructible_v&lt;T&gt;</code> is `true`."
2730
</p>
2831
</discussion>
2932

0 commit comments

Comments
 (0)