Skip to content

Commit 2ed84a6

Browse files
committed
Remove index_sequence alias
1 parent 156b455 commit 2ed84a6

File tree

2 files changed

+3
-31
lines changed

2 files changed

+3
-31
lines changed

include/boost/json/detail/index_sequence.hpp

Lines changed: 0 additions & 28 deletions
This file was deleted.

include/boost/json/detail/value_to.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#define BOOST_JSON_DETAIL_VALUE_TO_HPP
1414

1515
#include <boost/json/value.hpp>
16-
#include <boost/json/detail/index_sequence.hpp>
1716
#include <boost/json/detail/value_traits.hpp>
17+
#include <boost/mp11/integer_sequence.hpp>
1818

1919
#include <type_traits>
2020

@@ -219,7 +219,7 @@ value_to_generic(
219219

220220
template <class T, std::size_t... Is>
221221
T
222-
make_tuple_like(const array& arr, index_sequence<Is...>)
222+
make_tuple_like(const array& arr, boost::mp11::index_sequence<Is...>)
223223
{
224224
return T(value_to<typename std::tuple_element<Is, T>::type>(arr[Is])...);
225225
}
@@ -241,7 +241,7 @@ value_to_generic(
241241
BOOST_JSON_SOURCE_POS);
242242
}
243243

244-
return make_tuple_like<T>(arr, make_index_sequence<N>());
244+
return make_tuple_like<T>(arr, boost::mp11::make_index_sequence<N>());
245245
}
246246

247247
// Matches containers

0 commit comments

Comments
 (0)