[Bug libstdc++/51183] pair piecewise_construct_t constructor copies

paolo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Dec 6 15:14:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51183

--- Comment #20 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-12-06 15:13:10 UTC ---
Author: paolo
Date: Tue Dec  6 15:13:04 2011
New Revision: 182054

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182054
Log:
2011-12-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
        Chris Jefferson  <chris@bubblescope.net>

    PR libstdc++/51183
    * include/std/stl_pair.h (pair<>::__cons, pair<>::__do_cons): Remove.
    (pair<>::pair(piecewise_construct_t, tuple<>, tuple<>): Only declare.
    (pair<>::pair(tuple<>&, tuple<>&, _Index_tuple<>, _Index_tuple<>)):
    Declare.
    * include/std/tuple (pair<>::__cons, pair<>::__do_cons): Remove.
    (pair<>::pair(tuple<>&, tuple<>&, _Index_tuple<>, _Index_tuple<>)):
    Define.
    (pair<>::pair(piecewise_construct_t, tuple<>, tuple<>): Define,
    delegating to the latter.
    * testsuite/20_util/pair/piecewise2.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/20_util/pair/piecewise2.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/stl_pair.h
    trunk/libstdc++-v3/include/std/tuple



More information about the Gcc-bugs mailing list