Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r48789 - trunk/boost/test/utils/iterator
From: gennadiy.rozental_at_[hidden]
Date: 2008-09-15 02:35:25


Author: rogeeff
Date: 2008-09-15 02:35:25 EDT (Mon, 15 Sep 2008)
New Revision: 48789
URL: http://svn.boost.org/trac/boost/changeset/48789

Log:
slightly more portable (works for stdcxx)
Text files modified:
   trunk/boost/test/utils/iterator/istream_line_iterator.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/test/utils/iterator/istream_line_iterator.hpp
==============================================================================
--- trunk/boost/test/utils/iterator/istream_line_iterator.hpp (original)
+++ trunk/boost/test/utils/iterator/istream_line_iterator.hpp 2008-09-15 02:35:25 EDT (Mon, 15 Sep 2008)
@@ -70,7 +70,7 @@
     // increment implementation
     bool get()
     {
- return std::getline( *m_input_stream, this->m_value, m_delimeter ) != (void*)0;
+ return !!std::getline( *m_input_stream, this->m_value, m_delimeter );
     }
 
     // Data members


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk