[Boost-bugs] [Boost C++ Libraries] #1545: [boost/rational.hpp] 'noskipws' is not a member of 'std'

Subject: [Boost-bugs] [Boost C++ Libraries] #1545: [boost/rational.hpp] 'noskipws' is not a member of 'std'
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-12-28 15:11:06


#1545: [boost/rational.hpp] 'noskipws' is not a member of 'std'
-------------------------------+--------------------------------------------
 Reporter: faridz_at_[hidden] | Type: Bugs
   Status: new | Milestone: Boost 1.35.0
Component: None | Version: Boost Development Trunk
 Severity: Problem | Keywords:
-------------------------------+--------------------------------------------
 The [http://incubator.apache.org/stdcxx/ stdcxx] is the another
 implementation of the STL (initially based on RogueWave STL).

 The following error is encountered when running boost regression tests on
 msvc with stdcxx-4.2.0.
 {{{
 ..\boost\rational.hpp(555) : error C2039: 'noskipws' : is not a member of
 'std'
         D:\boost\boost\libs\rational\rational_test.cpp(806) : see
 reference to function template instantiation 'std::istream
 &boost::operator >><short>(std::istream &,boost::rational<IntType> &)'
 being compiled
         with
         [
             IntType=short
         ]
 }}}

 The std::noskipws manipulator is declared in <ios> header file.

 The proposed patch:
  {{{
 --- boost/rational.hpp
 +++ boost/rational.hpp
 @@ -51,7 +51,7 @@
  #define BOOST_RATIONAL_HPP

  #include <iostream> // for std::istream and std::ostream
 -#include <iomanip> // for std::noskipws
 +#include <ios> // for std::noskipws
  #include <stdexcept> // for std::domain_error
  #include <string> // for std::string implicit constructor
  #include <boost/operators.hpp> // for boost::addable etc
  }}}

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1545>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC