
23 Feb
2006
23 Feb
'06
12:12 a.m.
Peder Holt wrote:
This is not a problem in BOOST_TYPEOF.
Well, I never said it was -- it's a VC7.1 problem of course ;-). It's a confix_p with VC7.1 -- that's why I cross post to spirit.devel. If it's unfixable it would probably be a good idea to have a portability note in the docuementation.
The following code replicates the ICE under VC7.1:
Minimized further:
#include <boost/spirit/core.hpp> #include <boost/spirit/utility/confix.hpp>
using namespace boost::spirit; template<typename T> void test(const T&) {}
int main() { test( confix_p("//",*anychar_p,eol_p) <snip> ); return 0; }
Using confix_p(str_p("//"),*anychar_p,eol_p) melts the ICE. Regards, Tobias