From stdcxx-commits-return-1555-apmail-incubator-stdcxx-commits-archive=incubator.apache.org@incubator.apache.org Thu Jul 19 18:06:49 2007 Return-Path: Delivered-To: apmail-incubator-stdcxx-commits-archive@www.apache.org Received: (qmail 58720 invoked from network); 19 Jul 2007 18:06:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jul 2007 18:06:49 -0000 Received: (qmail 45819 invoked by uid 500); 19 Jul 2007 18:06:24 -0000 Delivered-To: apmail-incubator-stdcxx-commits-archive@incubator.apache.org Received: (qmail 45759 invoked by uid 500); 19 Jul 2007 18:06:23 -0000 Mailing-List: contact stdcxx-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-commits@incubator.apache.org Received: (qmail 45732 invoked by uid 99); 19 Jul 2007 18:06:23 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2007 11:06:23 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jul 2007 11:06:21 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 003A41A981A; Thu, 19 Jul 2007 11:06:00 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r557710 - /incubator/stdcxx/trunk/tests/include/rw_streambuf.h Date: Thu, 19 Jul 2007 18:06:00 -0000 To: stdcxx-commits@incubator.apache.org From: faridz@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070719180601.003A41A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 * 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;