Skip to main content
14 events
when toggle format what by license comment
Oct 21, 2013 at 11:25 answer added Grimm The Opiner timeline score: 1
Oct 8, 2013 at 6:22 vote accept NeonGlow
Oct 8, 2013 at 4:14 answer added rwong timeline score: 3
Oct 7, 2013 at 16:53 comment added hlt What about std::function (in the <functional> header)?
Oct 7, 2013 at 16:15 comment added Andyz Smith I use function pointers to implement Asynchronous Callbacks. I think most other things like a runtime Strategy pattern can be done with class hierarchies.
Oct 7, 2013 at 12:46 review Close votes
Oct 17, 2013 at 3:03
Oct 7, 2013 at 12:23 answer added jk. timeline score: 17
Oct 7, 2013 at 12:16 comment added James @NeonGlow There is no rule saying you shouldn't use them, but there are probably ways of structuring your code in such a way that you don't need them. It all depends on the problem you're trying to solve.
Oct 7, 2013 at 12:06 review First posts
Oct 7, 2013 at 12:27
Oct 7, 2013 at 12:04 comment added NeonGlow @MattD : Thanks for the help. I was somehow having an idea that we should not use fp in c++ if possible.
Oct 7, 2013 at 12:00 comment added Matt D Not really. There's nothing inherently bad about function pointers. There's always bad usage of them however ;) (other than the cache miss you'll probably get with your instruction cache)
Oct 7, 2013 at 11:53 comment added NeonGlow I am asking it generally. Sorry for being vague here. Just like C++ recommend usage of const instead of #define, in a similar way is there any recommendation not to use function pointers.
Oct 7, 2013 at 11:51 comment added Matt D Its not really clear what you're trying to achieve with function pointers?
Oct 7, 2013 at 11:50 history asked NeonGlow CC BY-SA 3.0