summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-13 12:14:15 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-13 12:14:15 +0000
commit61aa9b00baf02bb77f70de8a5c7f6cdd5f0037ee (patch)
treec8cc5cfcec5669c0b74ea511bc46bf29cb509a43 /libstdc++-v3/include
parent6c324a0921d62511d798cae1f80bcfeedc0cd5a5 (diff)
downloadgcc-61aa9b00baf02bb77f70de8a5c7f6cdd5f0037ee.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106862 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include')
-rw-r--r--libstdc++-v3/include/tr1/ref_wrap_iterate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/tr1/ref_wrap_iterate.h b/libstdc++-v3/include/tr1/ref_wrap_iterate.h
index d94ddc50b31..471547d0a14 100644
--- a/libstdc++-v3/include/tr1/ref_wrap_iterate.h
+++ b/libstdc++-v3/include/tr1/ref_wrap_iterate.h
@@ -40,5 +40,5 @@ template<_GLIBCXX_TEMPLATE_PARAMS>
#else
typename result_of<_M_func_type()>::type
operator()() const
-{ return (*get())(); }
+{ return get()(); }
#endif