diff --git a/examples/registry.cpp b/examples/registry.cpp index 091b090..4f1eaa8 100644 --- a/examples/registry.cpp +++ b/examples/registry.cpp @@ -12,7 +12,6 @@ #include #include -#include //<- // Making `#include ` visible in docs, while actually using `BOOST_TEST` // instead of `assert`. This is required to verify correct behavior even if NDEBUG diff --git a/examples/user_defined_typeinfo.hpp b/examples/user_defined_typeinfo.hpp index 5690a00..dc2caab 100644 --- a/examples/user_defined_typeinfo.hpp +++ b/examples/user_defined_typeinfo.hpp @@ -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 `` or `` 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 + ``. +*/ +#include + +/*` See implementation of `my_type_index`: */ namespace my_namespace { diff --git a/include/boost/type_index/ctti_type_index.hpp b/include/boost/type_index/ctti_type_index.hpp index 611ad92..6832ade 100644 --- a/include/boost/type_index/ctti_type_index.hpp +++ b/include/boost/type_index/ctti_type_index.hpp @@ -22,6 +22,7 @@ #include #include +#include #include #include #include diff --git a/include/boost/type_index/stl_type_index.hpp b/include/boost/type_index/stl_type_index.hpp index dc43c65..2b06368 100644 --- a/include/boost/type_index/stl_type_index.hpp +++ b/include/boost/type_index/stl_type_index.hpp @@ -41,7 +41,7 @@ #include #if !((defined(_MSC_VER) && _MSC_VER > 1600) || (__GNUC__ == 4 && __GNUC_MINOR__ > 5 && defined(__GXX_EXPERIMENTAL_CXX0X__))) -# include +# include #endif #if (defined(__EDG_VERSION__) && __EDG_VERSION__ < 245) \ diff --git a/include/boost/type_index/type_index_facade.hpp b/include/boost/type_index/type_index_facade.hpp index dd35df2..110000c 100644 --- a/include/boost/type_index/type_index_facade.hpp +++ b/include/boost/type_index/type_index_facade.hpp @@ -103,7 +103,8 @@ public: /// \b Override: This function \b may be redefined in Derived class. Overrides \b must not throw. /// \return Hash code of a type. By default hashes types by raw_name(). - /// \note has to be included if this function is used. + /// \note Derived class header \b must include , \b unless this function is redefined in + /// Derived class to not use boost::hash_range(). inline std::size_t hash_code() const BOOST_NOEXCEPT { const char* const name_raw = derived().raw_name(); return boost::hash_range(name_raw, name_raw + std::strlen(name_raw)); diff --git a/test/type_index_constexpr_test.cpp b/test/type_index_constexpr_test.cpp index e895d7b..acc55e9 100644 --- a/test/type_index_constexpr_test.cpp +++ b/test/type_index_constexpr_test.cpp @@ -7,7 +7,6 @@ #include -#include #include #include #include diff --git a/test/type_index_test.cpp b/test/type_index_test.cpp index c022812..b7925d2 100644 --- a/test/type_index_test.cpp +++ b/test/type_index_test.cpp @@ -7,7 +7,6 @@ #include -#include #include #include