Replace for_each_arg trick with fold expressions

This commit is contained in:
seelabs
2019-08-06 08:39:52 -07:00
parent b9e73b4852
commit 4076b6d92e
2 changed files with 9 additions and 13 deletions

View File

@@ -70,10 +70,7 @@ class Collectors
E e,
std::index_sequence<Is...>)
{
// Sean Parent for_each_argument trick (C++ fold expressions would be
// nice here)
(void)std::array<int, sizeof...(Cs)>{
{((apply(std::get<Is>(cs), who, when, e)), 0)...}};
(..., apply(std::get<Is>(cs), who, when, e));
}
public: