diff --git a/benchmark/functor/fmap/mpl_list.cpp b/benchmark/functor/fmap/mpl_list.cpp index 5b7e530dd..212705b00 100644 --- a/benchmark/functor/fmap/mpl_list.cpp +++ b/benchmark/functor/fmap/mpl_list.cpp @@ -1,4 +1,4 @@ -#include +#include #include <% list = Benchcc::MPL::List.new((0...x).map { |i| "x<#{i}>" }) %> diff --git a/benchmark/functor/fmap/mpl_vector.cpp b/benchmark/functor/fmap/mpl_vector.cpp index 7dcf8cc08..e7deff69a 100644 --- a/benchmark/functor/fmap/mpl_vector.cpp +++ b/benchmark/functor/fmap/mpl_vector.cpp @@ -1,4 +1,4 @@ -#include +#include #include <% vector = Benchcc::MPL::Vector.new((0...x).map { |i| "x<#{i}>" }) %> diff --git a/benchmark/functor/fmap/std_tuple.cpp b/benchmark/functor/fmap/std_tuple.cpp index 62e003a4e..71606fa60 100644 --- a/benchmark/functor/fmap/std_tuple.cpp +++ b/benchmark/functor/fmap/std_tuple.cpp @@ -1,4 +1,4 @@ -#include +#include template diff --git a/benchmark/list/permutations/std_tuple.cpp b/benchmark/list/permutations/std_tuple.cpp index c9476fbb2..4c7dffb12 100644 --- a/benchmark/list/permutations/std_tuple.cpp +++ b/benchmark/list/permutations/std_tuple.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include diff --git a/example/core/convert.cpp b/example/core/convert.cpp index d2930d9a7..5bba0e2d5 100644 --- a/example/core/convert.cpp +++ b/example/core/convert.cpp @@ -4,9 +4,9 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#include #include #include +#include #include #include diff --git a/example/core/disable.cpp b/example/core/disable.cpp index 8b466a7d8..9d3e6f290 100644 --- a/example/core/disable.cpp +++ b/example/core/disable.cpp @@ -4,9 +4,10 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#include #include #include +#include +#include using namespace boost::hana; @@ -16,5 +17,7 @@ namespace boost { namespace hana { }} int main() { + // Usually, List should provide Foldable. + BOOST_HANA_STATIC_ASSERT(instantiates); BOOST_HANA_STATIC_ASSERT(!instantiates); } diff --git a/example/core/is_a.cpp b/example/core/is_a.cpp index a7fa2a06f..66063e170 100644 --- a/example/core/is_a.cpp +++ b/example/core/is_a.cpp @@ -4,10 +4,10 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#include #include #include #include +#include #include #include #include diff --git a/example/integer_list/take_until.cpp b/example/integer_list/take_until.cpp index 3bc139108..d1cbcac09 100644 --- a/example/integer_list/take_until.cpp +++ b/example/integer_list/take_until.cpp @@ -4,8 +4,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#include #include +#include #include #include #include diff --git a/example/integral/logical/eval_if.cpp b/example/integral/logical/eval_if.cpp index 1bb48d3d3..93e436f62 100644 --- a/example/integral/logical/eval_if.cpp +++ b/example/integral/logical/eval_if.cpp @@ -4,9 +4,9 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#include #include #include +#include #include #include diff --git a/example/list/filter.cpp b/example/list/filter.cpp index 649781e24..70ea50036 100644 --- a/example/list/filter.cpp +++ b/example/list/filter.cpp @@ -4,8 +4,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#include #include +#include #include #include diff --git a/example/list/foldable/find.cpp b/example/list/foldable/find.cpp index cd42a8f85..ca655cf97 100644 --- a/example/list/foldable/find.cpp +++ b/example/list/foldable/find.cpp @@ -4,9 +4,9 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#include #include #include +#include #include #include #include diff --git a/example/list/into.cpp b/example/list/into.cpp index 701729f4f..bcd48e36a 100644 --- a/example/list/into.cpp +++ b/example/list/into.cpp @@ -4,8 +4,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#include #include +#include #include #include diff --git a/example/list/to.cpp b/example/list/to.cpp index 5eb64b7a8..11c2bae0e 100644 --- a/example/list/to.cpp +++ b/example/list/to.cpp @@ -4,9 +4,9 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#include -#include #include +#include +#include #include #include #include diff --git a/example/type/trait.cpp b/example/type/trait.cpp index 5323624ad..f272ad9e1 100644 --- a/example/type/trait.cpp +++ b/example/type/trait.cpp @@ -4,9 +4,9 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#include #include #include +#include #include #include diff --git a/example/type/trait_.cpp b/example/type/trait_.cpp index 118ee0f19..752794777 100644 --- a/example/type/trait_.cpp +++ b/example/type/trait_.cpp @@ -4,8 +4,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#include #include +#include #include #include diff --git a/example/type_list/foldable/count.cpp b/example/type_list/foldable/count.cpp index 9a9bb48e7..97f62de33 100644 --- a/example/type_list/foldable/count.cpp +++ b/example/type_list/foldable/count.cpp @@ -4,9 +4,9 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#include #include #include +#include #include #include #include diff --git a/example/type_list/foldable/foldl.cpp b/example/type_list/foldable/foldl.cpp index f63fc1b4e..8f13b5aa8 100644 --- a/example/type_list/foldable/foldl.cpp +++ b/example/type_list/foldable/foldl.cpp @@ -4,9 +4,9 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#include #include #include +#include #include #include #include diff --git a/example/type_list/partition.cpp b/example/type_list/partition.cpp index ee570c53a..a1cdf7489 100644 --- a/example/type_list/partition.cpp +++ b/example/type_list/partition.cpp @@ -4,8 +4,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#include #include +#include #include #include #include diff --git a/example/type_list/take_until.cpp b/example/type_list/take_until.cpp index 2d5d08be0..5d1ee8de6 100644 --- a/example/type_list/take_until.cpp +++ b/example/type_list/take_until.cpp @@ -4,8 +4,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#include #include +#include #include #include diff --git a/example/type_list/take_while.cpp b/example/type_list/take_while.cpp index e28f4ffde..ac64dffec 100644 --- a/example/type_list/take_while.cpp +++ b/example/type_list/take_while.cpp @@ -4,8 +4,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#include #include +#include #include #include diff --git a/include/boost/hana.hpp b/include/boost/hana.hpp index 392bd3dc7..8fcdea285 100644 --- a/include/boost/hana.hpp +++ b/include/boost/hana.hpp @@ -27,18 +27,18 @@ Distributed under the Boost Software License, Version 1.0. //! @defgroup datatypes Data types //! General purpose data types provided by the library. -#include -#include -#include -#include -#include -#include -#include -#include #include #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include diff --git a/include/boost/hana/adapted/mpl_list.hpp b/include/boost/hana/ext/mpl/list.hpp similarity index 93% rename from include/boost/hana/adapted/mpl_list.hpp rename to include/boost/hana/ext/mpl/list.hpp index db7778c7e..6d820a75d 100644 --- a/include/boost/hana/adapted/mpl_list.hpp +++ b/include/boost/hana/ext/mpl/list.hpp @@ -7,8 +7,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#ifndef BOOST_HANA_ADAPTED_MPL_LIST_HPP -#define BOOST_HANA_ADAPTED_MPL_LIST_HPP +#ifndef BOOST_HANA_EXT_MPL_LIST_HPP +#define BOOST_HANA_EXT_MPL_LIST_HPP #include #include @@ -63,4 +63,4 @@ namespace boost { namespace hana { }; }} // end namespace boost::hana -#endif // !BOOST_HANA_ADAPTED_MPL_LIST_HPP +#endif // !BOOST_HANA_EXT_MPL_LIST_HPP diff --git a/include/boost/hana/adapted/mpl_vector.hpp b/include/boost/hana/ext/mpl/vector.hpp similarity index 93% rename from include/boost/hana/adapted/mpl_vector.hpp rename to include/boost/hana/ext/mpl/vector.hpp index efbcb4aa2..b550d2e16 100644 --- a/include/boost/hana/adapted/mpl_vector.hpp +++ b/include/boost/hana/ext/mpl/vector.hpp @@ -7,8 +7,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#ifndef BOOST_HANA_ADAPTED_MPL_VECTOR_HPP -#define BOOST_HANA_ADAPTED_MPL_VECTOR_HPP +#ifndef BOOST_HANA_EXT_MPL_VECTOR_HPP +#define BOOST_HANA_EXT_MPL_VECTOR_HPP #include #include @@ -63,4 +63,4 @@ namespace boost { namespace hana { }; }} // end namespace boost::hana -#endif // !BOOST_HANA_ADAPTED_MPL_VECTOR_HPP +#endif // !BOOST_HANA_EXT_MPL_VECTOR_HPP diff --git a/include/boost/hana/adapted/std_array.hpp b/include/boost/hana/ext/std/array.hpp similarity index 94% rename from include/boost/hana/adapted/std_array.hpp rename to include/boost/hana/ext/std/array.hpp index 0f25b7e42..85822d1e7 100644 --- a/include/boost/hana/adapted/std_array.hpp +++ b/include/boost/hana/ext/std/array.hpp @@ -7,8 +7,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#ifndef BOOST_HANA_ADAPTED_STD_ARRAY_HPP -#define BOOST_HANA_ADAPTED_STD_ARRAY_HPP +#ifndef BOOST_HANA_EXT_STD_ARRAY_HPP +#define BOOST_HANA_EXT_STD_ARRAY_HPP #include #include @@ -74,4 +74,4 @@ namespace boost { namespace hana { }; }} // end namespace boost::hana -#endif // !BOOST_HANA_ADAPTED_STD_ARRAY_HPP +#endif // !BOOST_HANA_EXT_STD_ARRAY_HPP diff --git a/include/boost/hana/adapted/std_integer_sequence.hpp b/include/boost/hana/ext/std/integer_sequence.hpp similarity index 86% rename from include/boost/hana/adapted/std_integer_sequence.hpp rename to include/boost/hana/ext/std/integer_sequence.hpp index 3dce00d39..458f64a29 100644 --- a/include/boost/hana/adapted/std_integer_sequence.hpp +++ b/include/boost/hana/ext/std/integer_sequence.hpp @@ -7,13 +7,13 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#ifndef BOOST_HANA_ADAPTED_STD_INTEGER_SEQUENCE_HPP -#define BOOST_HANA_ADAPTED_STD_INTEGER_SEQUENCE_HPP +#ifndef BOOST_HANA_EXT_STD_INTEGER_SEQUENCE_HPP +#define BOOST_HANA_EXT_STD_INTEGER_SEQUENCE_HPP -#include #include #include #include +#include #include #include @@ -49,4 +49,4 @@ namespace boost { namespace hana { { }; }} // end namespace boost::hana -#endif // !BOOST_HANA_ADAPTED_STD_INTEGER_SEQUENCE_HPP +#endif // !BOOST_HANA_EXT_STD_INTEGER_SEQUENCE_HPP diff --git a/include/boost/hana/adapted/std_integral_constant.hpp b/include/boost/hana/ext/std/integral_constant.hpp similarity index 84% rename from include/boost/hana/adapted/std_integral_constant.hpp rename to include/boost/hana/ext/std/integral_constant.hpp index 20c13ff49..74798921d 100644 --- a/include/boost/hana/adapted/std_integral_constant.hpp +++ b/include/boost/hana/ext/std/integral_constant.hpp @@ -7,8 +7,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#ifndef BOOST_HANA_ADAPTED_STD_INTEGRAL_CONSTANT_HPP -#define BOOST_HANA_ADAPTED_STD_INTEGRAL_CONSTANT_HPP +#ifndef BOOST_HANA_EXT_STD_INTEGRAL_CONSTANT_HPP +#define BOOST_HANA_EXT_STD_INTEGRAL_CONSTANT_HPP #include #include @@ -38,4 +38,4 @@ namespace boost { namespace hana { }; }} // end namespace boost::hana -#endif // !BOOST_HANA_ADAPTED_STD_INTEGRAL_CONSTANT_HPP +#endif // !BOOST_HANA_EXT_STD_INTEGRAL_CONSTANT_HPP diff --git a/include/boost/hana/adapted/std_list.hpp b/include/boost/hana/ext/std/list.hpp similarity index 92% rename from include/boost/hana/adapted/std_list.hpp rename to include/boost/hana/ext/std/list.hpp index 02c1860ef..65456adf0 100644 --- a/include/boost/hana/adapted/std_list.hpp +++ b/include/boost/hana/ext/std/list.hpp @@ -7,8 +7,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#ifndef BOOST_HANA_ADAPTED_STD_LIST_HPP -#define BOOST_HANA_ADAPTED_STD_LIST_HPP +#ifndef BOOST_HANA_EXT_STD_LIST_HPP +#define BOOST_HANA_EXT_STD_LIST_HPP #include #include @@ -62,4 +62,4 @@ namespace boost { namespace hana { { }; }} // end namespace boost::hana -#endif // !BOOST_HANA_ADAPTED_STD_LIST_HPP +#endif // !BOOST_HANA_EXT_STD_LIST_HPP diff --git a/include/boost/hana/adapted/std_pair.hpp b/include/boost/hana/ext/std/pair.hpp similarity index 86% rename from include/boost/hana/adapted/std_pair.hpp rename to include/boost/hana/ext/std/pair.hpp index a16d78d36..01af96106 100644 --- a/include/boost/hana/adapted/std_pair.hpp +++ b/include/boost/hana/ext/std/pair.hpp @@ -7,8 +7,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#ifndef BOOST_HANA_ADAPTED_STD_PAIR_HPP -#define BOOST_HANA_ADAPTED_STD_PAIR_HPP +#ifndef BOOST_HANA_EXT_STD_PAIR_HPP +#define BOOST_HANA_EXT_STD_PAIR_HPP #include #include @@ -34,4 +34,4 @@ namespace boost { namespace hana { }; }} // end namespace boost::hana -#endif // !BOOST_HANA_ADAPTED_STD_PAIR_HPP +#endif // !BOOST_HANA_EXT_STD_PAIR_HPP diff --git a/include/boost/hana/adapted/std_tuple.hpp b/include/boost/hana/ext/std/tuple.hpp similarity index 96% rename from include/boost/hana/adapted/std_tuple.hpp rename to include/boost/hana/ext/std/tuple.hpp index a073c5fe4..b47e9dd82 100644 --- a/include/boost/hana/adapted/std_tuple.hpp +++ b/include/boost/hana/ext/std/tuple.hpp @@ -7,8 +7,8 @@ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ -#ifndef BOOST_HANA_ADAPTED_STD_TUPLE_HPP -#define BOOST_HANA_ADAPTED_STD_TUPLE_HPP +#ifndef BOOST_HANA_EXT_STD_TUPLE_HPP +#define BOOST_HANA_EXT_STD_TUPLE_HPP #include #include @@ -98,4 +98,4 @@ namespace boost { namespace hana { }; }} // end namespace boost::hana -#endif // !BOOST_HANA_ADAPTED_STD_TUPLE_HPP +#endif // !BOOST_HANA_EXT_STD_TUPLE_HPP diff --git a/include/boost/hana/type.hpp b/include/boost/hana/type.hpp index cdbba8540..62eac99d0 100644 --- a/include/boost/hana/type.hpp +++ b/include/boost/hana/type.hpp @@ -216,7 +216,7 @@ namespace boost { namespace hana { //! //! @note //! When using `trait` with metafunctions returning `std::integral_constant`s, - //! don't forget to include the boost/hana/adapted/std_integral_constant.hpp + //! don't forget to include the boost/hana/ext/std/integral_constant.hpp //! header! template