Boost logo

Boost :

Subject: Re: [boost] [thread] call_once regression or it is planed so?
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-06-04 11:17:35


On Tue, Jun 4, 2013 at 6:55 PM, Antony Polukhin <antoshkka_at_[hidden]> wrote:

> Hi,
>
> With 1.54.0_beta1 following code fails to compile:
>
> #include <boost/thread/once.hpp>
> void init_host(int);
> void init_host();
> boost::once_flag instance_flag = BOOST_ONCE_INIT;
>
> int main() {
> boost::call_once(&init_host, instance_flag);
> }
>
> In 1.53 it worked fine.
>
> Is that meant to be so and no workaround is possible, or is it a bug?
>

I think, you should explicitly disambiguate the overload.


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