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]

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


Author: redi
Date: Fri Nov 15 19:58:27 2019
New Revision: 278314

URL: https://gcc.gnu.org/viewcvs?rev=278314&root=gcc&view=rev
Log:
libstdc++: Implement LWG 3149 for std::default_constructible

The change approved in Belfast did not actually rename the concept from
std::default_constructible to std::default_initializable, even though
that was intended. That is expected to be done soon as a separate issue,
so I'm implementing that now too.

	* include/bits/iterator_concepts.h (weakly_incrementable): Adjust.
	* include/std/concepts (default_constructible): Rename to
	default_initializable and require default-list-initialization and
	default-initialization to be valid (LWG 3149).
	(semiregular): Adjust to new name.
	* testsuite/std/concepts/concepts.lang/concept.defaultconstructible/
	1.cc: Rename directory to concept.defaultinitializable and adjust to
	new name.
	* testsuite/std/concepts/concepts.lang/concept.defaultinitializable/
	lwg3149.cc: New test.
	* testsuite/util/testsuite_iterators.h (test_range): Adjust.

Added:
    trunk/libstdc++-v3/testsuite/std/concepts/concepts.lang/concept.defaultinitializable/
    trunk/libstdc++-v3/testsuite/std/concepts/concepts.lang/concept.defaultinitializable/1.cc
      - copied, changed from r278313, trunk/libstdc++-v3/testsuite/std/concepts/concepts.lang/concept.defaultconstructible/1.cc
    trunk/libstdc++-v3/testsuite/std/concepts/concepts.lang/concept.defaultinitializable/lwg3149.cc
Removed:
    trunk/libstdc++-v3/testsuite/std/concepts/concepts.lang/concept.defaultconstructible/
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/iterator_concepts.h
    trunk/libstdc++-v3/include/std/concepts
    trunk/libstdc++-v3/testsuite/util/testsuite_iterators.h


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