summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-12-21 19:53:19 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-12-21 19:53:19 +0000
commit51938d8266ebf28802274a87502a383072e999e7 (patch)
treeaeaf8dffa7ed21b0abdbf6e82d49db2bf7bf67a8 /ace
parent6a68877db14f8179752e1b6585d3030295deee6b (diff)
downloadATCD-51938d8266ebf28802274a87502a383072e999e7.tar.gz
(ACE_Bounded_Set::is_full): On LynxOS only, uninlined this function to avoid Internal Compiler Error with native (3.0.0) compiler
Diffstat (limited to 'ace')
-rw-r--r--ace/Containers_T.cpp10
-rw-r--r--ace/Containers_T.i3
2 files changed, 13 insertions, 0 deletions
diff --git a/ace/Containers_T.cpp b/ace/Containers_T.cpp
index 98577c73ff4..0cfb20d5530 100644
--- a/ace/Containers_T.cpp
+++ b/ace/Containers_T.cpp
@@ -1319,6 +1319,16 @@ ACE_Bounded_Set<T>::remove (const T &item)
return -1;
}
+#if defined (__Lynx__)
+ // LynxOS 3.0.0 native g++ compiler raises internal error with this inline.
+template <class T> int
+ACE_Bounded_Set<T>::is_full (void) const
+{
+ ACE_TRACE ("ACE_Bounded_Set<T>::is_full");
+ return this->cur_size_ == this->max_size_;
+}
+#endif /* __Lynx__ */
+
ACE_ALLOC_HOOK_DEFINE(ACE_Bounded_Set_Iterator)
template <class T> void
diff --git a/ace/Containers_T.i b/ace/Containers_T.i
index a5bba39bafc..50ec3667388 100644
--- a/ace/Containers_T.i
+++ b/ace/Containers_T.i
@@ -219,12 +219,15 @@ ACE_Bounded_Set<T>::is_empty (void) const
return this->cur_size_ == 0;
}
+#if !defined (__Lynx__)
+ // LynxOS 3.0.0 native g++ compiler raises internal error with this inline.
template <class T> ACE_INLINE int
ACE_Bounded_Set<T>::is_full (void) const
{
ACE_TRACE ("ACE_Bounded_Set<T>::is_full");
return this->cur_size_ == this->max_size_;
}
+#endif /* ! __Lynx__ */
// --