DescriptionAllow implicitly converting a lambda to mojo::Callback using C++11
This uses C++11 type traits to check if a type is convertible to an
std::function and if so uses an appropriate adaptor for mojo::Callback.
This replaces the fairly hacky operator() detection that was in place.
R=viettrungluu@chromium.org
Committed: https://chromium.googlesource.com/external/mojo/+/bdf32e44b287cb2ddb5509d37528296b5d08a1a6
Patch Set 1 #Patch Set 2 : #
Messages
Total messages: 6 (1 generated)
|