diff --git a/examples/user_defined_typeinfo.hpp b/examples/user_defined_typeinfo.hpp index 4bd7ff0..946be17 100644 --- a/examples/user_defined_typeinfo.hpp +++ b/examples/user_defined_typeinfo.hpp @@ -1,4 +1,4 @@ -// Copyright 2013-2014 Antony Polukhin +// Copyright 2013-2018 Antony Polukhin // Distributed under the Boost Software License, Version 1.0. // (See the accompanying file LICENSE_1_0.txt @@ -83,9 +83,9 @@ namespace my_namespace { namespace detail { /*` Since we are not going to override `type_index_facade::hash_code()` we must additionally include - ``. + ``. */ -#include +#include /*` See implementation of `my_type_index`: diff --git a/include/boost/type_index.hpp b/include/boost/type_index.hpp index 0310e20..5311ac8 100644 --- a/include/boost/type_index.hpp +++ b/include/boost/type_index.hpp @@ -1,5 +1,5 @@ // -// Copyright (c) Antony Polukhin, 2012-2014. +// Copyright (c) Antony Polukhin, 2012-2018. // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) diff --git a/include/boost/type_index/ctti_type_index.hpp b/include/boost/type_index/ctti_type_index.hpp index 6832ade..a59b2d8 100644 --- a/include/boost/type_index/ctti_type_index.hpp +++ b/include/boost/type_index/ctti_type_index.hpp @@ -1,5 +1,5 @@ // -// Copyright (c) Antony Polukhin, 2013-2016. +// Copyright (c) Antony Polukhin, 2013-2018. // // // Distributed under the Boost Software License, Version 1.0. (See accompanying @@ -22,7 +22,7 @@ #include #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 dcc532d..3a9834d 100644 --- a/include/boost/type_index/stl_type_index.hpp +++ b/include/boost/type_index/stl_type_index.hpp @@ -1,5 +1,5 @@ // -// Copyright (c) Antony Polukhin, 2013-2017. +// Copyright (c) Antony Polukhin, 2013-2018. // // // Distributed under the Boost Software License, Version 1.0. (See accompanying @@ -40,11 +40,7 @@ #include #include -#if !((defined(_MSC_VER) && _MSC_VER > 1600) \ - || (defined(__GNUC__) && __GNUC__ == 4 && __GNUC_MINOR__ > 5 && defined(__GXX_EXPERIMENTAL_CXX0X__)) \ - || (defined(__GNUC__) && __GNUC__ > 4 && __cplusplus >= 201103 )) -# include -#endif +#include #if (defined(__EDG_VERSION__) && __EDG_VERSION__ < 245) \ || (defined(__sgi) && defined(_COMPILER_VERSION) && _COMPILER_VERSION <= 744) diff --git a/include/boost/type_index/type_index_facade.hpp b/include/boost/type_index/type_index_facade.hpp index 110000c..e6dde8f 100644 --- a/include/boost/type_index/type_index_facade.hpp +++ b/include/boost/type_index/type_index_facade.hpp @@ -1,5 +1,5 @@ // -// Copyright (c) Antony Polukhin, 2013-2015. +// Copyright (c) Antony Polukhin, 2013-2018. // // // Distributed under the Boost Software License, Version 1.0. (See accompanying @@ -10,6 +10,7 @@ #define BOOST_TYPE_INDEX_TYPE_INDEX_FACADE_HPP #include +#include #include #include @@ -25,11 +26,6 @@ # pragma once #endif -// Forward declaration from #include -namespace boost { - template std::size_t hash_range(It, It); -} - namespace boost { namespace typeindex { /// \class type_index_facade @@ -103,7 +99,7 @@ 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 Derived class header \b must include , \b unless this function is redefined in + /// \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(); @@ -289,7 +285,7 @@ inline std::basic_ostream& operator<<( #endif // BOOST_NO_IOSTREAM /// This free function is used by Boost's unordered containers. -/// \note has to be included if this function is used. +/// \note has to be included if this function is used. template inline std::size_t hash_value(const type_index_facade& lhs) BOOST_NOEXCEPT { return static_cast(lhs).hash_code();