Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost regex is breaking math.h's signbit
From: boost_at_[hidden]
Date: 2010-06-21 10:35:31


Thanks John

I've create bug for gcc team
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44611

Adrian

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]] On Behalf Of John Maddock
Sent: Saturday, June 19, 2010 10:15 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] Boost regex is breaking math.h's signbit

> If I include boost/regex.hpp - the builtin c signbit stops being
> available.
> I am using my version of gcc 4.5.0 and my version of boost (built and
> installed with defaults)

Confirmed: and that's seriously annoying, but not our fault, as just:

#include <math.h>
#include <cmath>

is enough to break ::signbit.

This is what's happening in our code BTW - regex includes Boost.Hash which
include <cmath> which breaks your code.

Sorry, but there's no easy solution to this, other than to use std::signbit
from <cmath> I guess.

John.

_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


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