This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Author: redi
Date: Wed Jun  7 12:35:08 2017
New Revision: 248967

URL: https://gcc.gnu.org/viewcvs?rev=248967&root=gcc&view=rev
Log:
Add C++17 deduction guide for std::basic_string (P0433R2, partial)

	* include/bits/alloc_traits.h (__is_allocator, _RequireAllocator):
	New trait and alias for detecting Allocator-like types.
	* include/bits/basic_string.h (basic_string): Add deduction guide
	from P0433.
	* include/ext/alloc_traits.h (__gnu_cxx::__alloc_traits): Add template
	parameter with default template argument that causes substitution
	failures for types that cannot be allocators.
	* testsuite/21_strings/basic_string/cons/char/deduction.cc: New.
	* testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/21_strings/basic_string/cons/char/deduction.cc
    trunk/libstdc++-v3/testsuite/21_strings/basic_string/cons/wchar_t/deduction.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/alloc_traits.h
    trunk/libstdc++-v3/include/bits/basic_string.h
    trunk/libstdc++-v3/include/ext/alloc_traits.h


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]