summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2003-09-04 09:51:16 +0000
committerOliver Bolte <obo@openoffice.org>2003-09-04 09:51:16 +0000
commitf7b3d2b50444608d4035d172b142be68b4147b65 (patch)
tree3e6f5a5fa9a63ec31d7adea0346b40da84b175f3 /cppu
parent43962fb0ad28148cc4083235d0fc0c1fc29e9f53 (diff)
INTEGRATION: CWS cliuno01 (1.8.30); FILE MERGED
2003/08/08 07:00:42 dbo 1.8.30.1: adding >>=, ==, makeAny() for C++ bool
Diffstat (limited to 'cppu')
-rw-r--r--cppu/inc/com/sun/star/uno/Any.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/cppu/inc/com/sun/star/uno/Any.h b/cppu/inc/com/sun/star/uno/Any.h
index b2a934ad6eed..033a73e9da1d 100644
--- a/cppu/inc/com/sun/star/uno/Any.h
+++ b/cppu/inc/com/sun/star/uno/Any.h
@@ -2,9 +2,9 @@
*
* $RCSfile: Any.h,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: dbo $ $Date: 2002-08-19 07:18:44 $
+ * last change: $Author: obo $ $Date: 2003-09-04 10:51:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -260,6 +260,10 @@ public:
template< class C >
inline Any SAL_CALL makeAny( const C & value ) SAL_THROW( () );
+// additionally specialized for C++ bool
+template<>
+inline Any SAL_CALL makeAny( bool const & value ) SAL_THROW( () );
+
class BaseReference;
class Type;
@@ -312,6 +316,12 @@ inline sal_Bool SAL_CALL operator != ( const Any & rAny, const C & value ) SAL_T
// bool
inline sal_Bool SAL_CALL operator >>= ( const Any & rAny, sal_Bool & value ) SAL_THROW( () );
inline sal_Bool SAL_CALL operator == ( const Any & rAny, const sal_Bool & value ) SAL_THROW( () );
+template<>
+inline sal_Bool SAL_CALL operator >>= ( Any const & rAny, bool & value )
+ SAL_THROW( () );
+template<>
+inline sal_Bool SAL_CALL operator == ( Any const & rAny, bool const & value )
+ SAL_THROW( () );
// byte
inline sal_Bool SAL_CALL operator >>= ( const Any & rAny, sal_Int8 & value ) SAL_THROW( () );
// short