
24 Feb
2009
24 Feb
'09
2:50 a.m.
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