Skip to content
Snippets Groups Projects
Unverified Commit 00ee8818 authored by Giuseppe D'Angelo's avatar Giuseppe D'Angelo Committed by Jonathan Wakely
Browse files

libstdc++: port away from is_trivial in string classes


In preparation for the deprecation of is_trivial (P3247R2), stop using
it from std::string_view. Also, add the same detection to std::string
(described in [strings.general]/2).

libstdc++-v3/ChangeLog:

	* include/bits/basic_string.h: Add a static_assert on the
	char-like type.
	* include/std/string_view: Port away from is_trivial.

Signed-off-by: default avatarGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>
parent 8aaff8a1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment