summaryrefslogtreecommitdiff
path: root/sal/inc
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-10-11 08:01:10 +0000
committerOliver Bolte <obo@openoffice.org>2005-10-11 08:01:10 +0000
commite6ffb3773e49898b79f3ed3abc4424b091c8ad14 (patch)
treedae15281411a4bed7778dcd0e8e3aa5212d0aa0b /sal/inc
parent83ad3990372b41a33be707ac9ca39db28a4c8f01 (diff)
INTEGRATION: CWS presfixes08 (1.4.250); FILE MERGED
2005/09/14 16:29:23 dbo 1.4.250.1: #i46618# added get_pointer: support for boost::mem_fn and boost::bind
Diffstat (limited to 'sal/inc')
-rw-r--r--sal/inc/rtl/ref.hxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/sal/inc/rtl/ref.hxx b/sal/inc/rtl/ref.hxx
index 6707157624cc..274608da183d 100644
--- a/sal/inc/rtl/ref.hxx
+++ b/sal/inc/rtl/ref.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: ref.hxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 14:40:48 $
+ * last change: $Author: obo $ $Date: 2005-10-11 09:01:10 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -241,6 +241,14 @@ public:
}
};
+/** @internal
+ Enables boost::mem_fn and boost::bind to recognize Reference.
+*/
+template <typename T>
+inline T * get_pointer( Reference<T> const& r )
+{
+ return r.get();
+}
} // namespace rtl