Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2006-11-21 05:23:20


Richard Dingwall wrote:
> Just to follow up, will this be fixed in a future version? I believe
> that all boost libaries should compile without warnings or errors with
> the -pedantic option (indeed it becomes a PITA for me while building
> my own code that uses boost::regex).

Right, how do we fix it? Does changing:

BOOST_ASSERT(rep->next.p != 0);
BOOST_ASSERT(rep->alt.p != 0);

In perl_matcher_non_recursive.hpp, line 1043

To:

BOOST_ASSERT(rep->next.p);
BOOST_ASSERT(rep->alt.p);

Fix the issue?

Oh no wait, that can't be done because of this issue:
http://64.233.183.104/search?q=cache:Aqknf5ncceYJ:lists.boost.org/MailArchives/boost-users/msg06614.php+BOOST_ASSERT+regex+site:lists.boost.org&hl=en&gl=uk&ct=clnk&cd=1&client=firefox-a

This is already the fixed version :-(

Are you able to try with gcc-4.0.1 or later? I'm pretty certain this is a
compiler bug, as:

assert(my_pointer_type != 0);

should compile, whether we're in pedantic mode or not.

Otherwise we're going to be adding more BOOST_WORKAROUNDS :-(

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