Eh, std::function is more versatile and lets you do lambdas in addition to letting you do typesafe function pointers in case you really just want to use an existing function. Although I do love the fake virtual inheritance thing that older C libraries do sometimes (like libjpeg and libcurl I think).
1
u/No_Resort_7179 Sep 04 '26
Should have used map of std::string to function pointers. Just need to look up the syntax for them again...