I've been reading up on this, but I'm a bit confused so I'd love a nice,
simple example, if someone doesn't mind helping me. I'd like to store
references to a number of functions in a map. Each function will take no
arguments and will return nothing. I've looked at examples, but when I
tried to do it on my own, I always got errors, but wondered if part of
that
is because I was trying to do this with functions with void for a return
type.
Also, if the map is going to be defined in one file and the function is in
another, if I put protofunctions (is that the right term for pre-defining
a
function earlier in a file or in a header?) in the file the map is in and
it comes before the file with the actual functions, will that create any
problem since the actual locations of the functions is not yet defined?
Hal


|