The C++ pointer to member function syntax does not allow to designate members inside members as you intend to do here. One simple option is to use the provided global_fun
key extractor as shown at http://coliru.stacked-crooked.com/a/c57625bfb1d5acfa
Best,