r262322 - in /trunk/libstdc++-v3: ChangeLog inc...

redi@gcc.gnu.org redi@gcc.gnu.org
Mon Jul 2 22:09:00 GMT 2018


Author: redi
Date: Mon Jul  2 22:09:25 2018
New Revision: 262322

URL: https://gcc.gnu.org/viewcvs?rev=262322&root=gcc&view=rev
Log:
P0758R1 Implicit conversion traits

Extend __is_convertible_helper to also detect whether the conversion is
non-throwing, for std::is_nothrow_convertible in C++2a,

	* include/std/type_traits [__cplusplus > 201703]
	(__is_convertible_helper::__is_nothrow_type): Define new member.
	(__is_convertible_helper<_From, _To, false>::__test_aux1): Add
	noexcept.
	(__is_convertible_helper<_From, _To, false>::__test_nothrow)
	(__is_convertible_helper<_From, _To, false>::__is_nothrow_type): Add
	new members.
	(is_nothrow_convertible, is_nothrow_convertible_v): Define for C++2a.
	* testsuite/20_util/is_nothrow_convertible/value.cc: New.
	* testsuite/20_util/is_nothrow_convertible/requirements/
	explicit_instantiation.cc: New.
	* testsuite/20_util/is_nothrow_convertible/requirements/typedefs.cc:
	New.

Added:
    trunk/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/
    trunk/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/requirements/
    trunk/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/requirements/explicit_instantiation.cc
    trunk/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/requirements/typedefs.cc
    trunk/libstdc++-v3/testsuite/20_util/is_nothrow_convertible/value.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/std/type_traits
    trunk/libstdc++-v3/testsuite/20_util/make_signed/requirements/typedefs_neg.cc
    trunk/libstdc++-v3/testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc



More information about the Libstdc++-cvs mailing list