i\'m trying to understand a concept and an error. what\'s wrong with this?
class A { public: A() { std::function testFunc(&a
With c++11 you can also use lambdas which are slightly easier to read than std::bind:
std::bind
index[WM_CREATE] = [this](HWND h, UINT u, WPARAM w, LPARAM l) { create(h, u, w, l); }