From bea60412cb36fdb5f9a45694cf42cc3823657706 Mon Sep 17 00:00:00 2001 From: parsons Date: Wed, 18 Dec 2002 20:50:40 +0000 Subject: ChangeLogTag: Wed Dec 18 14:48:32 2002 Jeff Parsons --- TAO/ChangeLog | 9 +++++++++ TAO/tao/Any.h | 3 +++ TAO/tao/Any.i | 6 ++++++ 3 files changed, 18 insertions(+) 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 + + * tao/Any.h: + * tao/Any.i: + + Added cast operator to Any& for class Any_var. Thanks to Torsten Kuepper + for pointing out the lack of this spec-required + operator. + Wed Dec 18 14:46:53 2002 Balachandran Natarajan * 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 @@ -445,6 +445,9 @@ public: /// arrow operator (smart pointer) CORBA_Any *operator-> (void); + /// cast + operator CORBA_Any &(); + /// cast operator const CORBA_Any *() const; 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 @@ -82,6 +82,12 @@ CORBA_Any_var::~CORBA_Any_var (void) delete this->ptr_; } +ACE_INLINE +CORBA_Any_var::operator CORBA_Any &() +{ + return *this->ptr_; +} + ACE_INLINE CORBA_Any_var::operator CORBA_Any *&() { -- cgit v1.2.1