summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/tr1/functional
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-29 17:42:42 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-29 17:42:42 +0000
commitc2c4436e9cf2375b3e75b46df23eda9574ae556b (patch)
tree55dc26dc919328882e2de09ee91581205e178a6b /libstdc++-v3/include/tr1/functional
parentde36b326151d6ef13062f1c6d68b45d95c0dcb3d (diff)
downloadgcc-c2c4436e9cf2375b3e75b46df23eda9574ae556b.tar.gz
2005-09-29 Chris Jefferson <chris@bubblescope.net>
PR libstdc++/23978 * include/tr1/functional (ref, cref): Make inline. * include/tr1/tuple_iterate.h (tuple): Add operator=(std::pair). (tie): Correct formatting. (make_tuple): Make inline. * testsuite/tr1/6_containers/tuple/creation_functions/23978.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104784 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/tr1/functional')
-rw-r--r--libstdc++-v3/include/tr1/functional10
1 files changed, 6 insertions, 4 deletions
diff --git a/libstdc++-v3/include/tr1/functional b/libstdc++-v3/include/tr1/functional
index 6b197d83700..76eb87a0bb5 100644
--- a/libstdc++-v3/include/tr1/functional
+++ b/libstdc++-v3/include/tr1/functional
@@ -372,22 +372,24 @@ namespace tr1
// Denotes a reference should be taken to a variable.
template<typename _Tp>
- reference_wrapper<_Tp>
+ inline reference_wrapper<_Tp>
ref(_Tp& __t)
{ return reference_wrapper<_Tp>(__t); }
// Denotes a const reference should be taken to a variable.
template<typename _Tp>
- reference_wrapper<const _Tp>
+ inline reference_wrapper<const _Tp>
cref(const _Tp& __t)
{ return reference_wrapper<const _Tp>(__t); }
template<typename _Tp>
- reference_wrapper<_Tp> ref(reference_wrapper<_Tp> __t)
+ inline reference_wrapper<_Tp>
+ ref(reference_wrapper<_Tp> __t)
{ return ref(__t.get()); }
template<typename _Tp>
- reference_wrapper<const _Tp> cref(reference_wrapper<_Tp> __t)
+ inline reference_wrapper<const _Tp>
+ cref(reference_wrapper<_Tp> __t)
{ return cref(__t.get()); }
template<typename _Tp, bool>