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
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