
2 Sep
2011
2 Sep
'11
4:01 p.m.
On Fri, Sep 2, 2011 at 7:28 AM, Artyom Beilis <artyomtnk@yahoo.com> wrote:
From: Martin Bidlingmaier <Martin.Bidlingmaier@gmx.de>
I've written a new version of boost::any. It does not depend on rtti and uses a static integer value instead of std::type_info to store type information.
Please don't do this!
unsigned int next_id() { static unsigned int previous_id = 0; //0 is not assigned to a type
++previous_id; return previous_id; }
[...]
Would not this be non-thread safe?