mirror of
https://github.com/Naios/continuable.git
synced 2026-02-16 23:29:48 +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))...);
|
get<I>(std::forward<F>(first_sequenceable))...);
|
||||||
}
|
}
|
||||||
/// Calls the given unpacker with the content of the given sequenceable
|
/// Calls the given unpacker with the content of the given sequenceable
|
||||||
template <typename F, typename S, typename U, std::size_t... IF,
|
template <typename F, typename S, typename U, std::size_t... If,
|
||||||
std::size_t... IS>
|
std::size_t... Is>
|
||||||
constexpr auto unpack(F&& first_sequenceable, S&& second_sequenceable,
|
constexpr auto unpack(F&& first_sequenceable, S&& second_sequenceable,
|
||||||
U&& unpacker, std::integer_sequence<std::size_t, IF...>,
|
U&& unpacker, std::integer_sequence<std::size_t, If...>,
|
||||||
std::integer_sequence<std::size_t, IS...>)
|
std::integer_sequence<std::size_t, Is...>)
|
||||||
-> decltype(std::forward<U>(unpacker)(
|
-> decltype(std::forward<U>(unpacker)(
|
||||||
get<IF>(std::forward<F>(first_sequenceable))...,
|
get<If>(std::forward<F>(first_sequenceable))...,
|
||||||
get<IS>(std::forward<S>(second_sequenceable))...)) {
|
get<Is>(std::forward<S>(second_sequenceable))...)) {
|
||||||
|
(void)first_sequenceable;
|
||||||
|
(void)second_sequenceable;
|
||||||
return std::forward<U>(unpacker)(
|
return std::forward<U>(unpacker)(
|
||||||
get<IF>(std::forward<F>(first_sequenceable))...,
|
get<If>(std::forward<F>(first_sequenceable))...,
|
||||||
get<IS>(std::forward<S>(second_sequenceable))...);
|
get<Is>(std::forward<S>(second_sequenceable))...);
|
||||||
}
|
}
|
||||||
/// Calls the given unpacker with the content of the given sequenceable
|
/// Calls the given unpacker with the content of the given sequenceable
|
||||||
template <typename F, typename U>
|
template <typename F, typename U>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user