Boost logo

Boost :

Subject: Re: [boost] [thread] wrong guard for explicit bool operators (c++11)
From: Vicente Botet (vicente.botet_at_[hidden])
Date: 2012-02-09 09:54:15


Juergen Hunold-2 wrote
>
> Hi Vicente,
>
> your commit
> New Revision: 76951
> URL: http://svn.boost.org/trac/boost/changeset/76951
>
> Thread: Added explicit to operator bool for locks (11 hours ago)
>
> leads to the following errors when using gcc-4.6.1 in non-c++11 mode:
> $BOOST_ROOT/boost/thread/locks.hpp:1323:34: warning: explicit conversion
> operators only available with -std=c++0x or -std=gnu++0x [enabled by
> default]
>
> It seems that the guards checking for explicit conversion operators are
> wrong.
>
> -#ifndef BOOST_NO_EXPLICIT_CONVERSION_OPERATORS
> +#if defined(BOOST_NO_EXPLICIT_CONVERSION_OPERATORS)
>
> Patch attached. Ok to commit?
>
>

Hi,

I think the commit dates from yesterday.
I have see this issue this morning. Now that you have a correct patch,
please, commit it.

Thanks,
Vicente

--
View this message in context: http://boost.2283326.n4.nabble.com/thread-wrong-guard-for-explicit-bool-operators-c-11-tp4372256p4373110.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

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