Well, I am porting C++ code from Visual Studio C++ to GCC. I found two main issues that bother me enough to write about them.
(1.0) Temporary classes { buf << class_A(); } // does not compile on GCC, yak { Class_A tmp; buf << tmp; } // compiles on GCC So it seems GCC does not want us to use direct notation of temporary classes. Consider: { buf << A() << B() << C(); } which will not be allowed by the samaritan (2.0) void pointers { char* ap; void* vp = ap; } // does not compile on GCC, yak // but in VS++ void* can receive all pointers. { vp = (void*) ap; } // the good samaritan wants you to cast even the amorphic void*; yak If you know of some way to teach the GCC to work like VS++ with these issues -- would be delighted to hear from you. -- View this message in context: http://www.nabble.com/Two-porting-issues----Temporary-classes-and-void-pointers-tp19307106p19307106.html Sent from the gcc - bugs mailing list archive at Nabble.com.