|
-
July 20th, 2010, 05:11 PM
#7
Re: [g++] Getting an error while using reinterpret_cast operator
 Originally Posted by Speedo
Sounds like a problem with g++. That code compiles fine with both MSVC and Comeau's online compiler.
Exactly...
 Originally Posted by Speedo
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)...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|