Some more reduction of compiler warnings on MSVC

This commit is contained in:
Vojtech Bubnik 2021-02-10 18:04:16 +01:00
parent db2d78ff21
commit 05a6cfeaea
7 changed files with 37 additions and 4 deletions

View file

@ -10,7 +10,7 @@
#include <boost/algorithm/string.hpp>
#include <boost/log/trivial.hpp>
#include <boost/bind/placeholders.hpp>
#include <boost/bind/bind.hpp>
#include <boost/nowide/convert.hpp>
#include <iostream>

View file

@ -78,10 +78,17 @@
#include <boost/nowide/cstdio.hpp>
#include <boost/nowide/fstream.hpp>
#include <boost/optional.hpp>
// boost/property_tree/json_parser/detail/parser.hpp includes boost/bind.hpp, which is deprecated.
// Suppress the following boost message:
// The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated.
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <boost/property_tree/ini_parser.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ptree_fwd.hpp>
#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
#include <boost/system/error_code.hpp>
#include <tbb/parallel_for.h>