Re: [Libmesh-users] AutoPtr's and Dynamic Casting

2009-12-30 Thread John Peterson
I think you need to .get() the naked pointer from the AutoPtr, and cast that to the desired type. -- John On Wed, Dec 30, 2009 at 9:35 PM, Andrea Hawkins wrote: > Hello- > > I'm thinking my question may be basic C++, so sorry if it is, but at this > point I think I might be having trouble wit

[Libmesh-users] AutoPtr's and Dynamic Casting

2009-12-30 Thread Andrea Hawkins
Hello- I'm thinking my question may be basic C++, so sorry if it is, but at this point I think I might be having trouble with libMesh syntax as well. Anyway, I have a TransientNonlinearImplicitSystem & system, and this has as a member an AutoPtr > nonlinear_solver. Since I'm using PETSc, this is