summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-12-18 20:50:40 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-12-18 20:50:40 +0000
commitbea60412cb36fdb5f9a45694cf42cc3823657706 (patch)
tree8ea46f7f91f1b31f617033b417a8402862c4e250
parente06e9e900c81e1d4509ab351bbc915cf929c78b2 (diff)
downloadATCD-bea60412cb36fdb5f9a45694cf42cc3823657706.tar.gz
ChangeLogTag: Wed Dec 18 14:48:32 2002 Jeff Parsons <j.parsons@vanderbilt.edu>
-rw-r--r--TAO/ChangeLog9
-rw-r--r--TAO/tao/Any.h3
-rw-r--r--TAO/tao/Any.i6
3 files changed, 18 insertions, 0 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog
index 9b02a042529..0f865a27edd 100644
--- a/TAO/ChangeLog
+++ b/TAO/ChangeLog
@@ -1,3 +1,12 @@
+Wed Dec 18 14:48:32 2002 Jeff Parsons <j.parsons@vanderbilt.edu>
+
+ * tao/Any.h:
+ * tao/Any.i:
+
+ Added cast operator to Any& for class Any_var. Thanks to Torsten Kuepper
+ <torsten.kuepper@nokia.com> for pointing out the lack of this spec-required
+ operator.
+
Wed Dec 18 14:46:53 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
* orbsvcs/orbsvcs/Makefile (TAO_ORBSVCS): Build SSL only when
diff --git a/TAO/tao/Any.h b/TAO/tao/Any.h
index 34e1516b8f4..89e4adf2d91 100644
--- a/TAO/tao/Any.h
+++ b/TAO/tao/Any.h
@@ -446,6 +446,9 @@ public:
CORBA_Any *operator-> (void);
/// cast
+ operator CORBA_Any &();
+
+ /// cast
operator const CORBA_Any *() const;
/// cast
diff --git a/TAO/tao/Any.i b/TAO/tao/Any.i
index eb243d46614..7afc3814c12 100644
--- a/TAO/tao/Any.i
+++ b/TAO/tao/Any.i
@@ -83,6 +83,12 @@ CORBA_Any_var::~CORBA_Any_var (void)
}
ACE_INLINE
+CORBA_Any_var::operator CORBA_Any &()
+{
+ return *this->ptr_;
+}
+
+ACE_INLINE
CORBA_Any_var::operator CORBA_Any *&()
{
return this->ptr_;