Opened 15 years ago
Closed 14 years ago
#1545 closed Bugs (fixed)
[boost/rational.hpp] 'noskipws' is not a member of 'std'
Reported by: | Owned by: | Jonathan Turkanis | |
---|---|---|---|
Milestone: | Boost 1.36.0 | Component: | None |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: |
Description
The 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
Change History (2)
comment:1 by , 15 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Applied patch (sorry for delay)