From ac86d16b4cd99912bdcf7feb531fcdf68f53b406 Mon Sep 17 00:00:00 2001 From: bala Date: Fri, 24 Oct 2003 20:58:20 +0000 Subject: ChangeLogTag:Fri Oct 24 15:59:59 2003 Balachandran Natarajan --- TAO/ChangeLog_ref | 8 ++++++++ TAO/tao/Valuetype/AbstractBase.cpp | 10 +++++----- TAO/tao/Valuetype/AbstractBase.h | 1 - TAO/tao/Valuetype/Seq_Tmplinst.cpp | 21 +++++++++++---------- 4 files changed, 24 insertions(+), 16 deletions(-) diff --git a/TAO/ChangeLog_ref b/TAO/ChangeLog_ref index 88738924374..b80f87a892c 100644 --- a/TAO/ChangeLog_ref +++ b/TAO/ChangeLog_ref @@ -1,3 +1,11 @@ +Fri Oct 24 15:59:59 2003 Balachandran Natarajan + + * tao/Valuetype/AbstractBase.h: + * tao/Valuetype/AbstractBase.cpp: + * tao/Valuetype/Seq_Tmplinst.cpp: + Fixed the includes and some compilation errors with explicit + template instantiations. + Fri Oct 24 15:47:21 2003 Jeff Parsons * tao/Sequence_T.cpp: diff --git a/TAO/tao/Valuetype/AbstractBase.cpp b/TAO/tao/Valuetype/AbstractBase.cpp index b2739986957..d5750d5d925 100644 --- a/TAO/tao/Valuetype/AbstractBase.cpp +++ b/TAO/tao/Valuetype/AbstractBase.cpp @@ -106,7 +106,7 @@ CORBA::AbstractBase::_duplicate (CORBA::AbstractBase_ptr obj) obj->_add_ref (); } - if (!CORBA::is_nil (obj->equivalent_obj_)) + if (!CORBA::is_nil (obj->equivalent_obj_.in ())) { obj->equivalent_obj_->_add_ref (); } @@ -162,8 +162,8 @@ CORBA::AbstractBase::_tao_any_destructor (void *x) CORBA::Object_ptr CORBA::AbstractBase::_to_object (void) { - if (!CORBA::is_nil (this->equivalent_obj_)) - return CORBA::Object::_duplicate (this->equivalent_obj_); + if (!CORBA::is_nil (this->equivalent_obj_.in ())) + return CORBA::Object::_duplicate (this->equivalent_obj_.in ()); if (this->concrete_stubobj_ == 0) { @@ -420,10 +420,10 @@ CORBA::AbstractBase::equivalent_objref (void) } #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - +#if 0 template class TAO::Any_Impl_T; template class TAO::Any_Impl_T; - +#endif #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #pragma instantiate TAO::Any_Impl_T diff --git a/TAO/tao/Valuetype/AbstractBase.h b/TAO/tao/Valuetype/AbstractBase.h index ea0929815c7..c26f2682b11 100644 --- a/TAO/tao/Valuetype/AbstractBase.h +++ b/TAO/tao/Valuetype/AbstractBase.h @@ -10,7 +10,6 @@ */ //============================================================================= - #ifndef TAO_ABSTRACTBASE_H #define TAO_ABSTRACTBASE_H diff --git a/TAO/tao/Valuetype/Seq_Tmplinst.cpp b/TAO/tao/Valuetype/Seq_Tmplinst.cpp index d39700a9328..451aaf08907 100644 --- a/TAO/tao/Valuetype/Seq_Tmplinst.cpp +++ b/TAO/tao/Valuetype/Seq_Tmplinst.cpp @@ -18,12 +18,15 @@ // // ============================================================================ +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \ + defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #include "tao/Sequence_T.h" #include "tao/Any.h" #include "ValueBase.h" #include "AbstractBase.h" #include "Sequence_T.h" #include "ValueFactory.h" +#endif /*if ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA*/ ACE_RCSID (tao, Seq_Tmplinst, @@ -32,19 +35,17 @@ ACE_RCSID (tao, #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class TAO_Valuetype_Manager; + CORBA::ValueBase_var>; + template class TAO_Unbounded_Valuetype_Sequence; -template class TAO_Unbounded_Pseudo_Sequence; + CORBA::ValueBase_var>; + +template class TAO_Unbounded_Pseudo_Sequence; + +template class TAO_Value_Var_T ; -template class TAO_Value_Var_T ; -template class TAO_Value_Var_T ; +template class TAO_Value_Var_T ; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -- cgit v1.2.1