Skip to content

Commit

Permalink
Disable index_sequence emulation when variadic templates are unavaila…
Browse files Browse the repository at this point in the history
…ble.
  • Loading branch information
chriskohlhoff committed Jul 31, 2022
1 parent 4915cfd commit 6461f0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asio/include/asio/detail/utility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ using std::index_sequence;
using std::index_sequence_for;
using std::make_index_sequence;

#else // defined(ASIO_HAS_STD_INDEX_SEQUENCE)
#elif defined(ASIO_HAS_VARIADIC_TEMPLATES)

template <std::size_t...>
struct index_sequence
Expand Down Expand Up @@ -76,7 +76,7 @@ using index_sequence_for = typename index_range<0, sizeof...(T)>::type;
template <std::size_t N>
using make_index_sequence = typename index_range<0, N>::type;

#endif // defined(ASIO_HAS_STD_INDEX_SEQUENCE)
#endif // defined(ASIO_HAS_VARIADIC_TEMPLATES)

} // namespace detail
} // namespace asio
Expand Down

0 comments on commit 6461f0d

Please sign in to comment.