Boost logo

Boost :

From: Kevin Wheatley (hxpro_at_[hidden])
Date: 2005-08-16 08:42:30


cpp_regex_traits.hpp appears to be missing an include to define
std::basic_istream<> ...

cc-1070 CC: ERROR File =
boost_1_33_0/boost/regex/v4/cpp_regex_traits.hpp, Line = 442
  The indicated type is incomplete.

     std::basic_istream<charT> m_is; // stream for
parsing numbers.
                                    ^
          A template was detected during header processing.
            instantiation of class
                     
"boost::re_detail::cpp_regex_traits_implementation<char>"
                      at line 945
            instantiation of "std::string
                     
boost::cpp_regex_traits<char>::error_string(boost::regex_
                      constants::error_type) const" at line 171 of
                     
"boost_1_33_0/libs/regex/build/../src/posix_api.cpp"

1 error detected in the compilation of
"boost_1_33_0/libs/regex/build/../src/posix_api.cpp".

So the attatched patch adds a suitable include to get regex compiling

Kevin

-- 
| Kevin Wheatley, Cinesite (Europe) Ltd | Nobody thinks this      |
| Senior Technology                     | My employer for certain |
| And Network Systems Architect         | Not even myself         |

--- boost_1_33_0_mipspro_7.4.1/include/boost-1_33/boost/regex/v4/cpp_regex_traits.hpp 2005-07-12 10:49:10.000000000 +0100
+++ boost_1_33_0/boost/regex/v4/cpp_regex_traits.hpp 2005-08-16 14:32:00.000000000 +0100
@@ -21,6 +21,8 @@
 
 #include <boost/config.hpp>
 
+#include <istream>
+
 #ifndef BOOST_NO_STD_LOCALE
 
 #ifndef BOOST_RE_PAT_EXCEPT_HPP


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk