1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Tidy up parameter pack expansions

This commit is contained in:
reuk 2022-09-06 12:13:55 +01:00
parent 8b8ae10059
commit 65f1a76614
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
3 changed files with 6 additions and 11 deletions

View file

@ -120,9 +120,8 @@ namespace ID
template <typename Func, typename... Items>
constexpr void forEach (Func&& func, Items&&... items)
noexcept (noexcept (std::initializer_list<int> { (func (std::forward<Items> (items)), 0)... }))
{
(void) std::initializer_list<int> { ((void) func (std::forward<Items> (items)), 0)... };
(func (std::forward<Items> (items)), ...);
}
template <typename... Components>