Boost logo

Boost-Commit :

From: nesotto_at_[hidden]
Date: 2007-11-17 16:19:13


Author: nesotto
Date: 2007-11-17 16:19:13 EST (Sat, 17 Nov 2007)
New Revision: 41180
URL: http://svn.boost.org/trac/boost/changeset/41180

Log:
iostream macro patch
Text files modified:
   trunk/boost/range/iterator_range.hpp | 20 ++++++++++++--------
   1 files changed, 12 insertions(+), 8 deletions(-)

Modified: trunk/boost/range/iterator_range.hpp
==============================================================================
--- trunk/boost/range/iterator_range.hpp (original)
+++ trunk/boost/range/iterator_range.hpp 2007-11-17 16:19:13 EST (Sat, 17 Nov 2007)
@@ -29,11 +29,13 @@
 #include <boost/assert.hpp>
 #include <iterator>
 #include <algorithm>
-#ifndef BOOST_OLD_IOSTREAMS
-# include <ostream>
-#else
-# include <ostream.h>
-#endif
+#ifndef _STLP_NO_IOSTREAMS
+# ifndef BOOST_OLD_IOSTREAMS
+# include <ostream>
+# else
+# include <ostream.h>
+# endif
+#endif // _STLP_NO_IOSTREAMS
 #include <cstddef>
 
 #if BOOST_WORKAROUND(BOOST_MSVC, == 1310) || BOOST_WORKAROUND(BOOST_MSVC, == 1400)
@@ -396,7 +398,8 @@
 
 // iterator range free-standing operators ---------------------------//
 
-#ifndef BOOST_OLD_IOSTREAMS
+#ifndef _STLP_NO_IOSTREAMS
+# ifndef BOOST_OLD_IOSTREAMS
 
         //! iterator_range output operator
         /*!
@@ -415,7 +418,7 @@
             return Os;
         }
 
-#else
+# else
 
         //! iterator_range output operator
         /*!
@@ -431,7 +434,8 @@
             return Os;
         }
 
-#endif
+# endif
+#endif // _STLP_NO_IOSTREAMS
 
         /////////////////////////////////////////////////////////////////////
         // comparison operators


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