LWG 2975 ensure construct(pair<T,U>*, ...) used to construct pairs
authorJonathan Wakely <jwakely@redhat.com>
Mon, 18 Jun 2018 20:17:44 +0000 (21:17 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 18 Jun 2018 20:17:44 +0000 (21:17 +0100)
commit05891e9f458cc7e6ba5387c6ac84f4201e40107d
treeab76f552250e0e08a3463e2120eee14ecf0fd391
parentdf0b55f090b8591746d350a474d5f2291a9202be
LWG 2975 ensure construct(pair<T,U>*, ...) used to construct pairs

* include/std/scoped_allocator (__not_pair): Define SFINAE helper.
(construct(_Tp*, _Args&&...)): Remove from overload set when _Tp is
a specialization of std::pair.
* testsuite/20_util/scoped_allocator/construct_pair.cc: Ensure
pair elements are constructed correctly.

From-SVN: r261716
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/scoped_allocator
libstdc++-v3/testsuite/20_util/scoped_allocator/construct_pair.cc