summaryrefslogtreecommitdiff
path: root/TAO/tao/Sequence_T.cpp
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-17 17:00:45 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-17 17:00:45 +0000
commitf021aa85f8dc81ba11a566072412a937128d1b77 (patch)
treefed6f8161f589d6ab2dc388af7efd0e3898a5a93 /TAO/tao/Sequence_T.cpp
parent6f60efec8644e9d14ff9722f24f8ea0457178829 (diff)
downloadATCD-f021aa85f8dc81ba11a566072412a937128d1b77.tar.gz
More appeasements to SunCC4.x.
Diffstat (limited to 'TAO/tao/Sequence_T.cpp')
-rw-r--r--TAO/tao/Sequence_T.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/TAO/tao/Sequence_T.cpp b/TAO/tao/Sequence_T.cpp
index 87472b2489e..80bf414c61f 100644
--- a/TAO/tao/Sequence_T.cpp
+++ b/TAO/tao/Sequence_T.cpp
@@ -1051,8 +1051,12 @@ operator= (const TAO_Unbounded_Array_Sequence<T, T_var> &rhs)
if (this->maximum_ < rhs.maximum_)
{
// free the old buffer
+#if defined (__SUNPRO_CC) && (__SUNPRO_CC < 0x500)
+ T *tmp = (T *) this->buffer_;
+#else /* (__SUNPRO_CC) && (__SUNPRO_CC < 0x500) */
T *tmp = ACE_reinterpret_cast (T *,
this->buffer_);
+#endif /* (__SUNPRO_CC) && (__SUNPRO_CC < 0x500) */
TAO_Unbounded_Array_Sequence<T, T_var>::freebuf (tmp);
@@ -1070,10 +1074,15 @@ operator= (const TAO_Unbounded_Array_Sequence<T, T_var> &rhs)
for (CORBA::ULong i = 0; i < rhs.length_; ++i)
{
+#if defined (__SUNPRO_CC) && (__SUNPRO_CC < 0x500)
+ T_var::copy (((T *) this->buffer_)[i],
+ ((const T *) rhs.buffer_)[i]);
+#else /* (__SUNPRO_CC) && (__SUNPRO_CC < 0x500) */
T_var::copy (ACE_reinterpret_cast (T *,
this->buffer_)[i],
ACE_reinterpret_cast (const T *,
rhs.buffer_)[i]);
+#endif /* (__SUNPRO_CC) && (__SUNPRO_CC < 0x500) */
}
return *this;
@@ -1175,10 +1184,15 @@ TAO_Bounded_Array_Sequence<T, T_var, MAX>::operator=
for (CORBA::ULong i = 0; i < rhs.length_; ++i)
{
+#if defined (__SUNPRO_CC) && (__SUNPRO_CC < 0x500)
+ T_var::copy (((T *) this->buffer_)[i],
+ ((const T *) rhs.buffer_)[i]);
+#else /* (__SUNPRO_CC) && (__SUNPRO_CC < 0x500) */
T_var::copy (ACE_reinterpret_cast (T *,
this->buffer_)[i],
ACE_reinterpret_cast (const T *,
rhs.buffer_)[i]);
+#endif /* (__SUNPRO_CC) && (__SUNPRO_CC < 0x500) */
}
return *this;