|
Boost Users : |
Subject: Re: [Boost-users] Boost regex is breaking math.h's signbit
From: John Maddock (boost.regex_at_[hidden])
Date: 2010-06-19 12:15:30
> 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 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