Make it derived class responsibility to include <boost/functional/hash.hpp>

This commit is contained in:
Edward Catmur
2017-02-16 21:55:12 +00:00
parent f2616bcd17
commit 5cacb67510
7 changed files with 12 additions and 5 deletions

View File

@ -12,7 +12,6 @@
#include <boost/type_index.hpp>
#include <boost/unordered_set.hpp>
#include <boost/functional/hash.hpp>
//<-
// Making `#include <cassert>` visible in docs, while actually using `BOOST_TEST`
// instead of `assert`. This is required to verify correct behavior even if NDEBUG

View File

@ -70,7 +70,15 @@ namespace my_namespace { namespace detail {
`my_type_index` is a user created type_index class. If in doubt during this phase, you can always
take a look at the `<boost/type_index/ctti_type_index.hpp>` or `<boost/type_index/stl_type_index.hpp>`
files. Documentation for `type_index_facade` could be also useful.
*/
/*`
Since we are not going to override `type_index_facade::hash_code()` we must additionally include
`<boost/functional/hash.hpp>`.
*/
#include <boost/functional/hash.hpp>
/*`
See implementation of `my_type_index`:
*/
namespace my_namespace {