From dfae47afb3bb9bfb12ae17db2f092db9bb2fac9a Mon Sep 17 00:00:00 2001 From: Dmitry Arkhipov Date: Tue, 9 Nov 2021 17:10:06 +0300 Subject: [PATCH] Remove index_sequence alias --- include/boost/json/detail/index_sequence.hpp | 28 -------------------- include/boost/json/detail/value_to.hpp | 6 ++--- 2 files changed, 3 insertions(+), 31 deletions(-) delete mode 100644 include/boost/json/detail/index_sequence.hpp diff --git a/include/boost/json/detail/index_sequence.hpp b/include/boost/json/detail/index_sequence.hpp deleted file mode 100644 index 1340c200..00000000 --- a/include/boost/json/detail/index_sequence.hpp +++ /dev/null @@ -1,28 +0,0 @@ -// -// Copyright (c) 2021 Dmitry Arkhipov (grisumbras@gmail.com) -// -// 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) -// -// Official repository: https://github.com/boostorg/json -// - -#ifndef BOOST_JSON_DETAIL_INDEX_SEQUENCE_HPP -#define BOOST_JSON_DETAIL_INDEX_SEQUENCE_HPP - -#include -#include - -BOOST_JSON_NS_BEGIN -namespace detail { - -template -using index_sequence = boost::mp11::index_sequence; - -template -using make_index_sequence = boost::mp11::make_index_sequence; - -} // detail -BOOST_JSON_NS_END - -#endif // BOOST_JSON_DETAIL_INDEX_SEQUENCE_HPP diff --git a/include/boost/json/detail/value_to.hpp b/include/boost/json/detail/value_to.hpp index 9d9091b8..f025a08f 100644 --- a/include/boost/json/detail/value_to.hpp +++ b/include/boost/json/detail/value_to.hpp @@ -13,8 +13,8 @@ #define BOOST_JSON_DETAIL_VALUE_TO_HPP #include -#include #include +#include #include @@ -219,7 +219,7 @@ value_to_generic( template T -make_tuple_like(const array& arr, index_sequence) +make_tuple_like(const array& arr, boost::mp11::index_sequence) { return T(value_to::type>(arr[Is])...); } @@ -241,7 +241,7 @@ value_to_generic( BOOST_JSON_SOURCE_POS); } - return make_tuple_like(arr, make_index_sequence()); + return make_tuple_like(arr, boost::mp11::make_index_sequence()); } // Matches containers