[ConceptGCC] |
ConceptGCC :Concepts and member functions |
From: Mirko Stocker (me_at_[hidden])
Date: 2009-04-27 14:17:12
Hi
Giving this mailing list another try, maybe I'll get some reactions if I post
a (hopefully) interesting question:
Given the following code, how can I form a relationship between TestClass and
MemFun?
template <typename TestClass, typename MemFun>
struct incarnate_for_member_function {
MemFun memfun;
incarnate_for_member_function(MemFun f):memfun(f){}
void operator()(){
TestClass t;
(t.*memfun)();
}
};
Regards
Mirko