mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-08-25 19:55:38 +00:00
haze: move static_assert to requires, fix alignment
This commit is contained in:
parent
9676d97076
commit
1741004f19
2 changed files with 2 additions and 3 deletions
|
@ -40,9 +40,8 @@ namespace haze {
|
|||
void SetResult(Result r) { m_result = r; }
|
||||
Result GetResult() const { return m_result; }
|
||||
public:
|
||||
template <typename... Args>
|
||||
template <typename... Args> requires (sizeof...(Args) > 0)
|
||||
Result WaitFor(s32 *out_arg_waiter, Args &&... arg_waiters) {
|
||||
static_assert(sizeof...(Args) > 0);
|
||||
const Waiter arg_waiter_array[] = { arg_waiters... };
|
||||
return this->WaitForImpl(out_arg_waiter, arg_waiter_array, sizeof...(Args));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue