"is boost::property_tree::ptree thread safe?" Code Answer


because boost json parser depends on boost::spirit, and spirit is not thread-safety default.

you can add this macro before any ptree header file to resolve it.

#define boost_spirit_threadsafe
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
By Ricovitch on April 13 2022

Answers related to “is boost::property_tree::ptree thread safe?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.