gcc/libstdc++-v3/testsuite/26_numerics/random
Jonathan Wakely 77687bc0e1
libstdc++: Use constexpr-if for C++11 and C++14
Replace remaining uses of _GLIBCXX17_CONSTEXPR for constexpr-if, so that
we always use constexpr-if in C++11 and C++14. Diagnostic pragmas are
used to suppress diagnostics.

libstdc++-v3/ChangeLog:

	* include/bits/char_traits.h (char_traits::assign): Use
	constexpr-if unconditionally for C++11 and C++14.
	* include/bits/locale_conv.h (__do_str_codecvt): Likewise.
	* include/bits/ostream.h (basic_ostream::_S_cast_flt): Likewise.
	* include/bits/random.tcc (shuffle_order_engine::operator())
	(seed_seq::seed_seq(Iter, Iter)): Likewise.
	* include/bits/shared_ptr_base.h (_Sp_counted_base::_M_release):
	Likewise.
	* include/bits/stl_tree.h (_Rb_tree::_M_move_data): Likewise.
	* include/bits/uniform_int_dist.h
	(uniform_int_distribution::operator()): Likewise.
	* include/bits/valarray_array.h (__valarray_default_construct)
	(__valarray_fill_construct, __valarray_copy_construct)
	(__valarray_copy_construct, __valarray_destroy_elements):
	Likewise.
	* include/experimental/numeric (lcm): Likewise.
	* include/std/bit (__rotl, __rotr, __countl_zero, __countr_zero)
	(__popcount, __bit_ceil) Likewise.:
	* include/std/bitset (operator>>): Likewise.
	* include/std/charconv (__to_chars_8, __to_chars_i)
	(__from_chars_alnum_to_val, from_chars): Likewise.
	* include/tr2/dynamic_bitset (__dynamic_bitset_base): Likewise.
	* testsuite/26_numerics/random/pr60037-neg.cc: Adjust dg-error
	line number.

Reviewed-by: Tomasz Kamiński <tkaminsk@redhat.com>
2025-04-29 10:52:59 +01:00
..
bernoulli_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
binomial_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
cauchy_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
chi_squared_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
discard_block_engine Update copyright years. 2025-01-02 11:59:57 +01:00
discrete_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
exponential_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
extreme_value_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
fisher_f_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
gamma_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
geometric_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
independent_bits_engine Update copyright years. 2025-01-02 11:59:57 +01:00
linear_congruential_engine Update copyright years. 2025-01-02 11:59:57 +01:00
lognormal_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
mersenne_twister_engine Update copyright years. 2025-01-02 11:59:57 +01:00
negative_binomial_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
normal_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
piecewise_constant_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
piecewise_linear_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
poisson_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
random_device Update copyright years. 2025-01-02 11:59:57 +01:00
seed_seq Update copyright years. 2025-01-02 11:59:57 +01:00
shuffle_order_engine Update copyright years. 2025-01-02 11:59:57 +01:00
student_t_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
subtract_with_carry_engine Update copyright years. 2025-01-02 11:59:57 +01:00
uniform_int_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
uniform_real_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
weibull_distribution Update copyright years. 2025-01-02 11:59:57 +01:00
concept.cc Update copyright years. 2025-01-02 11:59:57 +01:00
default_random_engine.cc Update copyright years. 2025-01-02 11:59:57 +01:00
knuth_b.cc Update copyright years. 2025-01-02 11:59:57 +01:00
minstd_rand.cc Update copyright years. 2025-01-02 11:59:57 +01:00
minstd_rand0.cc Update copyright years. 2025-01-02 11:59:57 +01:00
mt19937.cc Update copyright years. 2025-01-02 11:59:57 +01:00
mt19937_64.cc Update copyright years. 2025-01-02 11:59:57 +01:00
pr60037-neg.cc libstdc++: Use constexpr-if for C++11 and C++14 2025-04-29 10:52:59 +01:00
ranlux24.cc Update copyright years. 2025-01-02 11:59:57 +01:00
ranlux24_base.cc Update copyright years. 2025-01-02 11:59:57 +01:00
ranlux48.cc Update copyright years. 2025-01-02 11:59:57 +01:00
ranlux48_base.cc Update copyright years. 2025-01-02 11:59:57 +01:00