stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r593363 - /incubator/stdcxx/branches/4.2.x/tests/utilities/20.auto.ptr.cpp
Date Thu, 08 Nov 2007 23:43:08 GMT
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  <sebor@roguewave.com>

	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
 
 }



Mime
View raw message