
13 Dec
2006
13 Dec
'06
7:53 p.m.
Johan RĂ¥de wrote:
ptree_implementation.h:
template<class Ptree> inline const Ptree &empty_ptree() { static Ptree pt; return pt; }
Would it be possible to remove the static variables from the ptree code? That would make it safe to use ptree during the static destruction phase.
Considering the fact that construction of static variables like this is not thread-safe, this even more important.