Author: faridz Date: Thu Jul 19 11:06:00 2007 New Revision: 557710 URL: http://svn.apache.org/viewvc?view=rev&rev=557710 Log: 2007-07-19 Farid Zaripov <[EMAIL PROTECTED]>
* rw_streambuf.h (MyStreambuf): Init throw_when_ array using when parameter. Modified: incubator/stdcxx/trunk/tests/include/rw_streambuf.h Modified: incubator/stdcxx/trunk/tests/include/rw_streambuf.h URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/include/rw_streambuf.h?view=diff&rev=557710&r1=557709&r2=557710 ============================================================================== --- incubator/stdcxx/trunk/tests/include/rw_streambuf.h (original) +++ incubator/stdcxx/trunk/tests/include/rw_streambuf.h Thu Jul 19 11:06:00 2007 @@ -235,6 +235,10 @@ // set the fail and throw flags if (fail_set & Throw) { throw_set_ = fail_set & ~Throw; + + for (unsigned i = 0; i < 11; ++i) + if (throw_set_ & (1U << i)) + throw_when_ [i] = when; } else { fail_set_ = fail_set; @@ -281,6 +285,10 @@ // set the fail and throw flags if (fail_set & Throw) { throw_set_ = fail_set & ~Throw; + + for (unsigned i = 0; i < 11; ++i) + if (throw_set_ & (1U << i)) + throw_when_ [i] = when; } else { fail_set_ = fail_set;