diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-10-11 08:01:44 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-10-11 08:01:44 +0000 |
commit | aff0b6f1185ae7825e6052f82b9cccbe19a9a90b (patch) | |
tree | 4706c7400e7a7f3dcdfc1849ed7b9bccdd23783a /cppu/inc/com | |
parent | e6ffb3773e49898b79f3ed3abc4424b091c8ad14 (diff) |
INTEGRATION: CWS presfixes08 (1.15.54); FILE MERGED
2005/09/14 16:27:56 dbo 1.15.54.1: #i46618# added get_pointer: support for boost::mem_fn and boost::bind
Diffstat (limited to 'cppu/inc/com')
-rw-r--r-- | cppu/inc/com/sun/star/uno/Reference.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/cppu/inc/com/sun/star/uno/Reference.h b/cppu/inc/com/sun/star/uno/Reference.h index 09950c4fbdef..50b3ec455844 100644 --- a/cppu/inc/com/sun/star/uno/Reference.h +++ b/cppu/inc/com/sun/star/uno/Reference.h @@ -4,9 +4,9 @@ * * $RCSfile: Reference.h,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: rt $ $Date: 2005-09-08 08:33:39 $ + * last change: $Author: obo $ $Date: 2005-10-11 09:01:44 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -451,6 +451,15 @@ public: inline static Reference< interface_type > SAL_CALL query( XInterface * pInterface ) SAL_THROW( (RuntimeException) ); }; +/** @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(); +} + } } } |