Boost logo

Boost :

Subject: Re: [boost] Boost.Convert+Boost.Parameter
From: David Abrahams (dave_at_[hidden])
Date: 2009-02-23 21:50:37


on Sun Feb 22 2009, "Vladimir Batov" <batov-AT-people.net.au> wrote:

> I spent some time reading Boost.Parameter docs and I hope I am getting a hang of
> it. Am I right thinking that in order to call
>
> convert<string, int>(str, default_ = -1)
>
> we are essentially creating "default_" on a side that we pass a reference to later? If
> so, am I right thinking that we might have a multi-threading safety issue if the call
> as above is called from two threads? Don't we have two threads assigning/accessing the
> same variable? Could that be an issue?

No. That assignment doesn't assign a variable; it creates a binding.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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