[Bug libstdc++/24818] tr1::reference_wrapper improperly calls nullary function objects

paolo at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Nov 13 12:14:00 GMT 2005

------- Comment #4 from paolo at gcc dot gnu dot org  2005-11-13 12:14 -------
Subject: Bug 24818

Author: paolo
Date: Sun Nov 13 12:14:51 2005
New Revision: 106863

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106863
2005-11-13  Jonathan Wakely  <redi@gcc.gnu.org>

        * include/tr1/boost_shared_ptr.h (get_deleter):
        Declare before shared_ptr.
        (shared_ptr<>): Declare get_deleter as friend.
        (shared_ptr<>:_M_get_deleter): Private.

2005-11-13  Douglas Gregor  <doug.gregor@gmail.com>

        PR libstdc++/24818
        * include/tr1/ref_wrap_iterate.h
        (reference_wrapper::operator()()): Don't dereferene the result of
        get() before calling it; it's already a reference.
        * testsuite/tr1/3_function_objects/reference_wrapper/invoke.cc:
        Test nullary calls to reference_wrappers.




More information about the Gcc-bugs mailing list