On Sat, Dec 6, 2008 at 9:20 AM, Roy Stogner <[EMAIL PROTECTED]> wrote: > On Sat, 6 Dec 2008, Shengli Xu wrote: > >> Hello, Libmesh developers and users >> >> There is only gcc3.2.2 on the server, I'm not the administrator. When >> compile libmesh0.6.3-rc1 with gcc3.2.2 , there is an error: >> >> ...... >> Compiling C++ (in optimized mode) src/mesh/xdr_io.C... >> src/mesh/xdr_io.C: In member function `virtual void XdrIO::write(const >> std::string&)': >> src/mesh/xdr_io.C:150: parse error before `,' token > > Hmm... it looks like the syntax there is just an attempt to avoid > confusing compilers - because there's a mesh() method inherited from > both MeshOutput and MeshInput, we need to disambiguate which one we're > calling, even though they do the same thing. > > Could you see if you can find any other style of code that will do > that disambiguation with gcc 3? Maybe cast "this" down to a > MeshOutput and then call mesh() from the result? I'm afraid I don't > have a gcc 3 compiler around to test with.
How about a dynamic_cast of 'this' to a MeshOutput<MeshBase>* ? -- John ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
