LWG 2510, make the default constructors of library tag types explicit.
authorVille Voutilainen <ville.voutilainen@gmail.com>
Wed, 11 Nov 2015 14:47:19 +0000 (16:47 +0200)
committerVille Voutilainen <ville@gcc.gnu.org>
Wed, 11 Nov 2015 14:47:19 +0000 (16:47 +0200)
commit269fa2a91b6d96ca71776077082f2538d6e032cb
treea2e12c097060dfba72c4948b13a0f5d486705daa
parente78bede6f774bc0d294adafe5e3367c4da10647e
LWG 2510, make the default constructors of library tag types explicit.

2015-11-10  Ville Voutilainen  <ville.voutilainen@gmail.com>

LWG 2510, make the default constructors of library tag types
explicit.
* include/bits/mutex.h (defer_lock_t, try_lock_t,
adopt_lock_t): Add an explicit default constructor.
* include/bits/stl_pair.h (piecewise_construct_t): Likewise.
* include/bits/uses_allocator.h (allocator_arg_t): Likewise.
* libsupc++/new (nothrow_t): Likewise.
* testsuite/17_intro/tag_type_explicit_ctor.cc: New.

From-SVN: r230175
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/mutex.h
libstdc++-v3/include/bits/stl_pair.h
libstdc++-v3/include/bits/uses_allocator.h
libstdc++-v3/libsupc++/new
libstdc++-v3/testsuite/17_intro/tag_type_explicit_ctor.cc [new file with mode: 0644]