Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <map>
- /* definition of class, A, with a public typedef of a member function type, B */
- void f() {
- static std::map<std::string, A::B> strToFunction (
- { "string1", &A::B1 },
- { "string2", &A::B2 }
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement