mirror of
https://github.com/Naios/continuable.git
synced 2026-02-09 11:16:40 +08:00
Fix a bad conversion
This commit is contained in:
parent
0e80147343
commit
0da8d1206f
@ -266,8 +266,7 @@ inline void voidify_empty_tuple(std::tuple<>) noexcept {
|
|||||||
///
|
///
|
||||||
/// If the returned tuple is empty, voidis returned instead.
|
/// If the returned tuple is empty, voidis returned instead.
|
||||||
template <typename... T>
|
template <typename... T>
|
||||||
constexpr auto tupelize_or_void(T&&... args)
|
constexpr decltype(auto) tupelize_or_void(T&&... args) {
|
||||||
-> decltype(voidify_empty_tuple(tupelize(std::forward<T>(args)...))) {
|
|
||||||
return voidify_empty_tuple(tupelize(std::forward<T>(args)...));
|
return voidify_empty_tuple(tupelize(std::forward<T>(args)...));
|
||||||
}
|
}
|
||||||
} // namespace spreading
|
} // namespace spreading
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user