AK: Add missing 'template' keywords in TypeList
This caused the AK build to be broken on OpenBSD (and possibly other platforms / compiler versions). Fixes #4692.
This commit is contained in:
parent
e6e4fe4f51
commit
a8ac8c6a8f
Notes:
sideshowbarker
2024-07-19 00:18:38 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/a8ac8c6a8f1 Pull-request: https://github.com/SerenityOS/serenity/pull/4693 Issue: https://github.com/SerenityOS/serenity/issues/4692
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ struct TypeWrapper {
|
|||
template<typename List, typename F, unsigned... Indexes>
|
||||
constexpr void for_each_type_impl(F&& f, IndexSequence<Indexes...>)
|
||||
{
|
||||
(forward<F>(f)(TypeWrapper<typename List::Type<Indexes>> {}), ...);
|
||||
(forward<F>(f)(TypeWrapper<typename List::template Type<Indexes>> {}), ...);
|
||||
}
|
||||
|
||||
template<typename List, typename F>
|
||||
|
@ -74,7 +74,7 @@ constexpr void for_each_type(F&& f)
|
|||
template<typename ListA, typename ListB, typename F, unsigned... Indexes>
|
||||
constexpr void for_each_type_zipped_impl(F&& f, IndexSequence<Indexes...>)
|
||||
{
|
||||
(forward<F>(f)(TypeWrapper<typename ListA::Type<Indexes>> {}, TypeWrapper<typename ListB::Type<Indexes>> {}), ...);
|
||||
(forward<F>(f)(TypeWrapper<typename ListA::template Type<Indexes>> {}, TypeWrapper<typename ListB::template Type<Indexes>> {}), ...);
|
||||
}
|
||||
|
||||
template<typename ListA, typename ListB, typename F>
|
||||
|
|
Loading…
Add table
Reference in a new issue