Author: sebor
Date: Thu Nov  8 15:43:03 2007
New Revision: 593363

URL: http://svn.apache.org/viewvc?rev=593363&view=rev
Log:
2007-11-08  Martin Sebor  <[EMAIL PROTECTED]>

        Merged rev 593361 from trunk with a workaround for STDCXX-616.
        * 20.auto.ptr.cpp (test_auto_ptr_void): Worked around HP aCC bugs.


Modified:
    incubator/stdcxx/branches/4.2.x/tests/utilities/20.auto.ptr.cpp

Modified: incubator/stdcxx/branches/4.2.x/tests/utilities/20.auto.ptr.cpp
URL: 
http://svn.apache.org/viewvc/incubator/stdcxx/branches/4.2.x/tests/utilities/20.auto.ptr.cpp?rev=593363&r1=593362&r2=593363&view=diff
==============================================================================
--- incubator/stdcxx/branches/4.2.x/tests/utilities/20.auto.ptr.cpp (original)
+++ incubator/stdcxx/branches/4.2.x/tests/utilities/20.auto.ptr.cpp Thu Nov  8 
15:43:03 2007
@@ -22,7 +22,7 @@
  * implied.   See  the License  for  the  specific language  governing
  * permissions and limitations under the License.
  *
- * Copyright 2000-2006 Rogue Wave Software.
+ * Copyright 2000-2007 Rogue Wave Software, Inc.
  * 
  **************************************************************************/
 
@@ -290,8 +290,14 @@
 
 #ifndef _RWSTD_NO_MEMBER_TEMPLATES
 
+#  if !defined (__HP_aCC) || 6 <=  _RWSTD_HP_aCC_MAJOR
+
+    // working around an HP aCC 3 and 5 bug (STDCXX-655)
+
     ap1.operator=<void>(ap1);
 
+#  endif   // !HP aCC or HP aCC 6 and better
+
     std::auto_ptr<int> ap4;
     ap1 = ap4;
     ap1.operator= (ap4);
@@ -312,12 +318,17 @@
 
 #ifndef _RWSTD_NO_MEMBER_TEMPLATES
 
+#  if !defined (__HP_aCC) || 6 <=  _RWSTD_HP_aCC_MAJOR
+
+    // working around an HP aCC 3 and 5 bug (STDCXX-656)
+
     const std::auto_ptr_ref<void> ar = ap1.operator std::auto_ptr_ref<void>();
     const std::auto_ptr<void> ap5 = ap1.operator std::auto_ptr<void>();
 
     _RWSTD_UNUSED (ar);
     _RWSTD_UNUSED (ap5);
 
+#  endif   // !HP aCC or HP aCC 6 and better
 #endif // _RWSTD_NO_MEMBER_TEMPLATES
 
 }


Reply via email to