mirror of
https://github.com/boostorg/json.git
synced 2026-02-01 20:42:17 +00:00
Remove index_sequence alias
This commit is contained in:
@@ -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 <boost/json/detail/config.hpp>
|
||||
#include <boost/mp11/integer_sequence.hpp>
|
||||
|
||||
BOOST_JSON_NS_BEGIN
|
||||
namespace detail {
|
||||
|
||||
template <std::size_t... Is>
|
||||
using index_sequence = boost::mp11::index_sequence<Is...>;
|
||||
|
||||
template <std::size_t N>
|
||||
using make_index_sequence = boost::mp11::make_index_sequence<N>;
|
||||
|
||||
} // detail
|
||||
BOOST_JSON_NS_END
|
||||
|
||||
#endif // BOOST_JSON_DETAIL_INDEX_SEQUENCE_HPP
|
||||
@@ -13,8 +13,8 @@
|
||||
#define BOOST_JSON_DETAIL_VALUE_TO_HPP
|
||||
|
||||
#include <boost/json/value.hpp>
|
||||
#include <boost/json/detail/index_sequence.hpp>
|
||||
#include <boost/json/detail/value_traits.hpp>
|
||||
#include <boost/mp11/integer_sequence.hpp>
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
@@ -219,7 +219,7 @@ value_to_generic(
|
||||
|
||||
template <class T, std::size_t... Is>
|
||||
T
|
||||
make_tuple_like(const array& arr, index_sequence<Is...>)
|
||||
make_tuple_like(const array& arr, boost::mp11::index_sequence<Is...>)
|
||||
{
|
||||
return T(value_to<typename std::tuple_element<Is, T>::type>(arr[Is])...);
|
||||
}
|
||||
@@ -241,7 +241,7 @@ value_to_generic(
|
||||
BOOST_JSON_SOURCE_POS);
|
||||
}
|
||||
|
||||
return make_tuple_like<T>(arr, make_index_sequence<N>());
|
||||
return make_tuple_like<T>(arr, boost::mp11::make_index_sequence<N>());
|
||||
}
|
||||
|
||||
// Matches containers
|
||||
|
||||
Reference in New Issue
Block a user