Skip to content

Commit c0d60ee

Browse files
author
Sebastiano Merlino
committed
changed event_tuple construtor to use initialization list
1 parent 830103f commit c0d60ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/webserver.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,11 @@ struct event_tuple
288288
dispatch_events_ptr dispatch_events;
289289

290290
template<typename T>
291-
event_tuple(event_supplier<T>* es)
291+
event_tuple(event_supplier<T>* es):
292+
supply_events(std::bind1st(std::mem_fun(&T::supply_events), es)),
293+
get_timeout(std::bind1st(std::mem_fun(&T::get_timeout), es)),
294+
dispatch_events(std::bind1st(std::mem_fun(&T::dispatch_events), es))
292295
{
293-
supply_events(std::bind1st(std::mem_fun(&T::supply_events), es));
294-
get_timeout(std::bind1st(std::mem_fun(&T::get_timeout), es));
295-
dispatch_events(std::bind1st(std::mem_fun(&T::dispatch_events), es));
296296
}
297297
};
298298

0 commit comments

Comments
 (0)