Boost logo

Boost :

From: Daryle Walker (darylew_at_[hidden])
Date: 2005-08-19 02:04:36


On 8/16/05 2:11 PM, "George M. Garner Jr." <gmgarner_at_[hidden]> wrote:

> Would you mind including this regex fix:
>
> file: basic_regex.hpp.
> bool BOOST_REGEX_CALL empty()const
> {
> --return (m_pimpl.get() ? 0 != m_pimpl->status() : 0);
> ++return (m_pimpl.get() ? 0 != m_pimpl->status() : 1);
> }
> Reason:
>
> empty() currently returns false (0) when the result of get() is NULL.
[TRUNCATE]

If "status" returns a built-in (i.e. "operator !=" can't be overridden),
then could we change the final "1" to a "true"?

-- 
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT hotmail DOT com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk