
Ran into a strange problem with boost::regex today. I get this just from including boost/regex.hpp: powerbook:~/Desktop/bre_test richard$ make g++ -pedantic -Wall -g -I/usr/local/include/boost-1_33_1/ -c -o bre_test.o bre_test.cpp /usr/local/include/boost-1_33_1/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function `bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::unwind_greedy_single_repeat(bool)': /usr/local/include/boost-1_33_1/boost/regex/v4/perl_matcher_non_recursive.hpp:991: error: invalid conversion from 'boost::re_detail::re_syntax_base*' to 'long int' /usr/local/include/boost-1_33_1/boost/regex/v4/perl_matcher_non_recursive.hpp:992: error: invalid conversion from 'boost::re_detail::re_syntax_base*' to 'long int' /usr/local/include/boost-1_33_1/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function `bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::unwind_slow_dot_repeat(bool)': /usr/local/include/boost-1_33_1/boost/regex/v4/perl_matcher_non_recursive.hpp:1041: error: invalid conversion from 'boost::re_detail::re_syntax_base*' to 'long int' /usr/local/include/boost-1_33_1/boost/regex/v4/perl_matcher_non_recursive.hpp:1042: error: invalid conversion from 'boost::re_detail::re_syntax_base*' to 'long int' /usr/local/include/boost-1_33_1/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function `bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::unwind_char_repeat(bool)': /usr/local/include/boost-1_33_1/boost/regex/v4/perl_matcher_non_recursive.hpp:1159: error: invalid conversion from 'boost::re_detail::re_syntax_base*' to 'long int' /usr/local/include/boost-1_33_1/boost/regex/v4/perl_matcher_non_recursive.hpp:1160: error: invalid conversion from 'boost::re_detail::re_syntax_base*' to 'long int' /usr/local/include/boost-1_33_1/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function `bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::unwind_short_set_repeat(bool)': /usr/local/include/boost-1_33_1/boost/regex/v4/perl_matcher_non_recursive.hpp:1223: error: invalid conversion from 'boost::re_detail::re_syntax_base*' to 'long int' /usr/local/include/boost-1_33_1/boost/regex/v4/perl_matcher_non_recursive.hpp:1224: error: invalid conversion from 'boost::re_detail::re_syntax_base*' to 'long int' /usr/local/include/boost-1_33_1/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function `bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::unwind_long_set_repeat(bool)': /usr/local/include/boost-1_33_1/boost/regex/v4/perl_matcher_non_recursive.hpp:1288: error: invalid conversion from 'boost::re_detail::re_syntax_base*' to 'long int' /usr/local/include/boost-1_33_1/boost/regex/v4/perl_matcher_non_recursive.hpp:1289: error: invalid conversion from 'boost::re_detail::re_syntax_base*' to 'long int' make: *** [bre_test.o] Error 1 powerbook:~/Desktop/bre_test richard$ A test case is attached. OS X version: Darwin powerbook.local 8.8.0 Darwin Kernel Version 8.8.0: Fri Sep 8 17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC Power Macintosh powerpc