Use Boost hash_fwd.hpp include instead of hash.hpp directly

Boost recommends this as the latter includes a whole bunch of other headers.
This commit is contained in:
Charles Dang 2017-07-14 12:02:59 +11:00
parent 76173a9c72
commit 2eefdd8948
3 changed files with 3 additions and 3 deletions

View file

@ -42,7 +42,7 @@
#include "utils/functional.hpp"
#include <boost/algorithm/string.hpp>
#include <boost/functional/hash.hpp>
#include <boost/functional/hash_fwd.hpp>
#include <set>

View file

@ -27,7 +27,7 @@
#include "log.hpp"
#include "utils/math.hpp"
#include <boost/functional/hash.hpp>
#include <boost/functional/hash_fwd.hpp>
static lg::log_domain log_config("config");
#define ERR_CF LOG_STREAM(err, log_config)

View file

@ -25,7 +25,7 @@
#include "tstring.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include <boost/functional/hash.hpp>
#include <boost/functional/hash_fwd.hpp>
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/hashed_index.hpp>