# # # patch "vocab.hh" # from [31f55c37c36cb02f5549724bc59df9e8fcaa0f5a] # to [b8f1323d7543251906e9e64a651239ed32e7afac] # ============================================================ --- vocab.hh 31f55c37c36cb02f5549724bc59df9e8fcaa0f5a +++ vocab.hh b8f1323d7543251906e9e64a651239ed32e7afac @@ -41,6 +41,11 @@ void dump(T const &, std::string &) // than string refcopy on my system (g++ 4). This only happens because // we tell Boost not to worry about threads... but I don't recognize any // thread stuff in the string headers. +namespace +{ + std::string empty; +} + class immutable_string { boost::shared_ptr _rep; @@ -54,7 +59,6 @@ public: std::string const & get() const { - static std::string empty; if (_rep) return *_rep; else