gcc/libstdc++-v3/testsuite
Patrick Palka f3ced6772e libstdc++: Fix the default constructor of ranges::__detail::__box
The class template semiregular-box<T> of [range.semi.wrap] is specified
to value-initialize the underlying object whenever its type is default
initializable.  Our primary template for __detail::__box respects this
requirement, but the recently added partial specialization (for types
that are already semiregular) does not.

This patch fixes this issue, and additionally makes the corresponding in
place constructor explicit (as in the primary template).

libstdc++-v3/ChangeLog:

	* include/std/ranges (__detail::__box): For the partial
	specialization used by types that are already semiregular,
	make the default constructor value-initialize the underlying
	object instead of default-initializing it.  Make its in place
	constructor explicit.
	* testsuite/std/ranges/adaptors/detail/semiregular_box.cc:
	Augment test.
2020-10-30 12:33:13 -04:00
..
17_intro
18_support libstdc++: Avoid warnings in tests 2020-10-29 22:47:21 +00:00
19_diagnostics
20_util libstdc++: AIX xfail for_overwrite.cc testcase 2020-10-29 21:57:24 -04:00
21_strings libstdc++: Avoid warnings in tests 2020-10-29 22:47:21 +00:00
22_locale libstdc++: Avoid warnings in tests 2020-10-29 22:47:21 +00:00
23_containers libstdc++: Avoid warnings in tests 2020-10-29 22:47:21 +00:00
24_iterators
25_algorithms libstdc++: Avoid warnings in tests 2020-10-29 22:47:21 +00:00
26_numerics libstdc++: Fix name clash with _Cosh in QNX headers [PR 95592] 2020-10-28 12:35:44 +00:00
27_io libstdc++: Avoid warnings in tests 2020-10-29 22:47:21 +00:00
28_regex
29_atomics
30_threads libstdc++: Fix custom clock in test 2020-10-22 23:14:13 +01:00
abi
backward
config
data
decimal
experimental libstdc++: Avoid warnings in tests 2020-10-29 22:47:21 +00:00
ext libstdc++: Avoid warnings in tests 2020-10-29 22:47:21 +00:00
lib libstdc++: Improve comments for check_effective_target_cxx11-abi 2020-10-14 12:52:47 +01:00
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters
libstdc++-xmethods
performance
special_functions
std libstdc++: Fix the default constructor of ranges::__detail::__box 2020-10-30 12:33:13 -04:00
tr1 libstdc++: Prevent deprecation warnings from <tr1/shared_ptr> 2020-10-29 22:47:22 +00:00
tr2
util libstdc++: Avoid warnings in tests 2020-10-29 22:47:21 +00:00
Makefile.am
Makefile.in