Author: sebor Date: Thu Jul 17 20:26:32 2008 New Revision: 677810 URL: http://svn.apache.org/viewvc?rev=677810&view=rev Log: 2008-07-17 Martin Sebor <[EMAIL PROTECTED]>
STDCXX-896 * tests/containers/23.deque.modifiers.cpp (test_insert, test_assign): Cast away the constness of the target type before deleting a pointer to work around an HP aCC 6.16 bug. Modified: stdcxx/branches/4.2.x/tests/containers/23.deque.modifiers.cpp Modified: stdcxx/branches/4.2.x/tests/containers/23.deque.modifiers.cpp URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/containers/23.deque.modifiers.cpp?rev=677810&r1=677809&r2=677810&view=diff ============================================================================== --- stdcxx/branches/4.2.x/tests/containers/23.deque.modifiers.cpp (original) +++ stdcxx/branches/4.2.x/tests/containers/23.deque.modifiers.cpp Thu Jul 17 20:26:32 2008 @@ -452,7 +452,10 @@ std::free (funcall); delete[] xins; - delete[] xseq; + + // cast away constness to work around an HP aCC 6.16 bug + // see http://issues.apache.org/jira/browse/STDCXX-802 + delete[] _RWSTD_CONST_CAST (UserClass*, xseq); } /**************************************************************************/ @@ -980,7 +983,10 @@ std::free (funcall); delete[] xasn; - delete[] xseq; + + // cast away constness to work around an HP aCC 6.16 bug + // see http://issues.apache.org/jira/browse/STDCXX-802 + delete[] _RWSTD_CONST_CAST (UserClass*, xseq); } @@ -1182,7 +1188,9 @@ std::free (funcall); - delete[] xseq; + // cast away constness to work around an HP aCC 6.16 bug + // see http://issues.apache.org/jira/browse/STDCXX-802 + delete[] _RWSTD_CONST_CAST (UserClass*, xseq); } void test_erase ()