That std::bind stuff is just what I was looking for (although I would call that a lambda, but whatever). Yeah, as you can see, I'm not exactly familiar with C++11.