mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Replace for_each_arg trick with fold expressions
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user