mirror of
https://github.com/Naios/continuable.git
synced 2025-12-08 01:36:46 +08:00
Fix some MSVC warnings
This commit is contained in:
parent
8df57d6d8b
commit
bf04c6600f
@ -326,17 +326,19 @@ constexpr auto unpack(F&& first_sequenceable, U&& unpacker,
|
||||
get<I>(std::forward<F>(first_sequenceable))...);
|
||||
}
|
||||
/// Calls the given unpacker with the content of the given sequenceable
|
||||
template <typename F, typename S, typename U, std::size_t... IF,
|
||||
std::size_t... IS>
|
||||
template <typename F, typename S, typename U, std::size_t... If,
|
||||
std::size_t... Is>
|
||||
constexpr auto unpack(F&& first_sequenceable, S&& second_sequenceable,
|
||||
U&& unpacker, std::integer_sequence<std::size_t, IF...>,
|
||||
std::integer_sequence<std::size_t, IS...>)
|
||||
U&& unpacker, std::integer_sequence<std::size_t, If...>,
|
||||
std::integer_sequence<std::size_t, Is...>)
|
||||
-> decltype(std::forward<U>(unpacker)(
|
||||
get<IF>(std::forward<F>(first_sequenceable))...,
|
||||
get<IS>(std::forward<S>(second_sequenceable))...)) {
|
||||
get<If>(std::forward<F>(first_sequenceable))...,
|
||||
get<Is>(std::forward<S>(second_sequenceable))...)) {
|
||||
(void)first_sequenceable;
|
||||
(void)second_sequenceable;
|
||||
return std::forward<U>(unpacker)(
|
||||
get<IF>(std::forward<F>(first_sequenceable))...,
|
||||
get<IS>(std::forward<S>(second_sequenceable))...);
|
||||
get<If>(std::forward<F>(first_sequenceable))...,
|
||||
get<Is>(std::forward<S>(second_sequenceable))...);
|
||||
}
|
||||
/// Calls the given unpacker with the content of the given sequenceable
|
||||
template <typename F, typename U>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user