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:
parent
8b8ae10059
commit
65f1a76614
3 changed files with 6 additions and 11 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue