|
Boost Users : |
Subject: Re: [Boost-users] [system] local static and threading in C++03
From: Vicente Botet (vicente.botet_at_[hidden])
Date: 2012-12-25 15:28:42
Felipe Magno de Almeida wrote
> Hello,
>
> Boost.System returns the system_category this way:
>
> BOOST_SYSTEM_DECL const error_category & system_category()
> {
> static const system_error_category system_category_const;
> return system_category_const;
> }
>
> But couldn't this make double construction/double free in C++03 systems
> if system_category is ran concurrently?
Yes sure, this is always possible zith c++0·. Do you see a problem with this
implementation?
Best,
Vicente
-- View this message in context: http://boost.2283326.n4.nabble.com/system-local-static-and-threading-in-C-03-tp4640524p4640553.html Sent from the Boost - Users mailing list archive at Nabble.com.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net