stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r645737 - /stdcxx/trunk/tests/iterators/24.istream.iterator.cpp
Date Mon, 07 Apr 2008 23:38:29 GMT
Author: sebor
Date: Mon Apr  7 16:38:28 2008
New Revision: 645737

URL: http://svn.apache.org/viewvc?rev=645737&view=rev
Log:
2008-04-07  Martin Sebor  <sebor@roguewave.com>

	* tests/iterators/24.istream.iterator.cpp (test_ops): Parenthesized
	subexpression to shut up the annoying HP aCC warning #4259-D: suggest
	parentheses around the operands of "!=" and similarly for gcc 4.3.

Modified:
    stdcxx/trunk/tests/iterators/24.istream.iterator.cpp

Modified: stdcxx/trunk/tests/iterators/24.istream.iterator.cpp
URL: http://svn.apache.org/viewvc/stdcxx/trunk/tests/iterators/24.istream.iterator.cpp?rev=645737&r1=645736&r2=645737&view=diff
==============================================================================
--- stdcxx/trunk/tests/iterators/24.istream.iterator.cpp (original)
+++ stdcxx/trunk/tests/iterators/24.istream.iterator.cpp Mon Apr  7 16:38:28 2008
@@ -166,7 +166,7 @@
 
     const Iterator it (strm);
 
-    rw_assert (is_eos ^ it != eos, 0, line,
+    rw_assert (is_eos ^ (it != eos), 0, line,
                "line %d: %{$ITER}::operator() != %{$ITER}()", __LINE__);
 
     if (0 == (strm.rdstate () & (strm.badbit | strm.failbit))) {



Mime
View raw message