|
Boost Users : |
Subject: Re: [Boost-users] Boost.Regex compile error with gcc 4.6
From: John Maddock (boost.regex_at_[hidden])
Date: 2011-01-10 04:49:33
boost/regex.hpp fails to compile with gcc 4.6, giving the following errors:
In file included from /lib/boost/boost/regex/v4/perl_matcher.hpp:578:0,
from /lib/boost/boost/regex/v4/regex.hpp:88,
from /lib/boost/boost/regex.hpp:31,
from test.cpp:1:
/lib/boost/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):
/lib/boost/boost/regex/v4/perl_matcher_non_recursive.hpp:1394:85: error:
invalid use of incomplete type const struct
boost::regex_traits_wrapper<traits>
/lib/boost/boost/regex/v4/regex_traits.hpp:163:8: error: declaration of
const struct boost::regex_traits_wrapper<traits>
/lib/boost/boost/regex/v4/perl_matcher_non_recursive.hpp:1394:85: error:
invalid type argument of unary * (have BidiIterator)
It compiles fine with gcc 4.5.
Is this an issue with boost or gcc? Should I report it as a bug?
~~~~~~~~~
I'm afraid I don't understand why it's giving that error at all, 4.6 isn't a
released compiler yet right?
Anyone else have any ideas?
Thanks, John.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net