Thank you everyone for offering to help! I will first try to duplicate the problem with a small example. If that doesn't work then I will zip up the full program and upload. Thanks again!
Wait! When calling the function pointer it is just calling the function pointer, not the actual function. So it's still not clear to me how
mc1.fn1 and
mc2.fn1 are distinguished. :confused: Does ...
Thanks! Point well taken - I already fixed the code when VC++ did not do the "smart optimization" and exposed the bug. The exercise of looking at the assembly code was just to understand why g++...
Now I am still fascinated by the fact that g++ produced identical binaries from codes with different logic. So I made a small example project and tested...
Long time ago I heard that the speed of floating point multiplication is much faster than division. Is it still the case today? (On a not very powerful netbook) Thanks!
I have to move the multimap back into the class otherwise different instances of the class share the same multimap and interfere with one another. Now the code looks something like
OK I hope I am getting close to the right track: failed to find the syntax to call std::mem_fun and confused by std::function and std::bind, I found this:...