Boost logo

Boost :

Subject: Re: [boost] [xpressive] Broken in release if explicit operator bool is available
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-01-02 20:09:30

On Thu, Jan 3, 2013 at 4:54 AM, Andrey Semashev
<andrey.semashev_at_[hidden]> wrote:
> Hi,
> With the recent change to Boost.SmartPtr that adds support for
> explicit operator bool() Boost.Xpressive no longer compiles. The
> relevant error message is:
> ./boost/xpressive/detail/utility/tracking_ptr.hpp:440:73: error: no
> type named ‘unspecified_bool_type’ in ‘class
> boost::intrusive_ptr<boost::xpressive::detail::regex_impl<const char*>
> Could this be fixed?

Another similar error:

error: cannot convert ‘const boost::intrusive_ptr<const
boost::xpressive::detail::matchable_ex<const char*> >’ to ‘bool’ for
argument ‘1’ to ‘bool boost::xpressive::detail::ensure_(bool,
boost::xpressive::regex_constants::error_type, const char*, const
char*, const char*, long unsigned int)’

Boost list run by bdawes at, gregod at, cpdaniel at, john at