Skip to content

Commit

Permalink
- boost json parser depends on boost::spirit, and spirit is not thre…
Browse files Browse the repository at this point in the history
…ad-safe by default. so need to enable thread-safety
  • Loading branch information
narekgharibyan committed Nov 3, 2017
1 parent 27b1015 commit 96ca66c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions keyvi/src/cpp/dictionary/fsa/internal/serialization_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
#define SERIALIZATION_UTILS_H_

#include <arpa/inet.h>
// boost json parser depends on boost::spirit, and spirit is not thread-safe by default. so need to enable thread-safety
#define BOOST_SPIRIT_THREADSAFE
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/lexical_cast.hpp>
Expand Down

0 comments on commit 96ca66c

Please sign in to comment.