Commit 789dbd17 authored by Hannes Roth's avatar Hannes Roth Committed by Noam Lerner

(Wangle) Don't use std::bind in Core

Summary:
Seems like an unnecessary indirection that might make it harder to for
the compiler to inline everything (if that's even possible with
`std::bind`)?

Test Plan: Run all the tests.

Reviewed By: hans@fb.com

Subscribers: folly-diffs@, jsedgwick, yfeldblum, chalfant

FB internal diff: D2115032

Signature: t1:2115032:1433182233:3938d0498cad50df32c8b6ee4536de14ae5fd006
parent 6f8699fc
......@@ -271,8 +271,7 @@ class Core {
FSM_START(fsm_)
case State::Armed:
if (active_) {
FSM_UPDATE2(fsm_, State::Done, []{},
std::bind(&Core::doCallback, this));
FSM_UPDATE2(fsm_, State::Done, []{}, [this]{ this->doCallback(); });
}
FSM_BREAK
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment