Quote Originally Posted by Speedo View Post
Sounds like a problem with g++. That code compiles fine with both MSVC and Comeau's online compiler.
Exactly...

Quote Originally Posted by Speedo View Post
He's talking about function pointer conversions in general. You can just as easily change that line to be something totally different and blatantly wrong
I know, but in my type-casting which I'm doing by means of reinterpret_cast operator, the new type (here it is int (*)(int)) is exactly the same as while doing type-casting by means of traditional way. (Look at my 1# post)...