Boost logo

Boost :

From: Richard Hadsell (hadsell_at_[hidden])
Date: 2005-08-16 12:20:05


The mipspro build of regex fails in fileiter.cpp, because the header is
missing an include:

mipspro-C++-action bin/boost/libs/regex/build/libboost_regex.so/mipspro/debug/fileiter.o
cc-1079 CC: ERROR File = /tmp_mnt/netDISKS/cgi/IRIX4/cgi/vendor/library/boost/boost_1_33_0/boost/regex/v4/fileiter.hpp, Line = 212
  A type specifier is expected.

     typedef std::ptrdiff_t difference_type;
             ^
... (2 similar places in the same file)

The fix should be good for any compiler:

diff -u -r1.1 -r1.2
--- boost/regex/v4/fileiter.hpp 2005/08/12 17:26:18 1.1
+++ boost/regex/v4/fileiter.hpp 2005/08/16 16:49:48 1.2
@@ -61,6 +61,7 @@
 
 #elif defined(BOOST_REGEX_FI_POSIX_DIR)
 
+#include <cstddef>
 #include <cstdio>
 #include <cctype>
 #include <iterator>

P.S.: Thanks to Kevin Wheatley for reporting a similar problem in
cpp_regex_traits.hpp, so that I didn't have to.

-- 
Dick Hadsell			914-259-6320  Fax: 914-259-6499
Reply-to:			hadsell_at_[hidden]
Blue Sky Studios                http://www.blueskystudios.com
44 South Broadway, White Plains, NY 10601

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