From aff0b6f1185ae7825e6052f82b9cccbe19a9a90b Mon Sep 17 00:00:00 2001 From: Oliver Bolte Date: Tue, 11 Oct 2005 08:01:44 +0000 Subject: 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 --- cppu/inc/com/sun/star/uno/Reference.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'cppu/inc/com') 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 +inline T * get_pointer( Reference const& r ) +{ + return r.get(); +} + } } } -- cgit