Re: [Libmesh-devel] Issue with libmesh_cast_ptr

2009-02-04 Thread Derek Gaston
Aha I figured I was doing it wrong... It's fine the way it is I think. If we really don't have to specify that second argument then I'm satisfied. Derek Sent from my iPhone On Feb 4, 2009, at 6:40 PM, Roy Stogner wrote: > > On Wed, 4 Feb 2009, Derek Gaston wrote: > >> So I just tried to

Re: [Libmesh-devel] Issue with libmesh_cast_ptr

2009-02-04 Thread Roy Stogner
On Wed, 4 Feb 2009, Derek Gaston wrote: > So I just tried to use libmesh_cast_ptr for the first time and I'm > not really sure about the interface. Here's what I'm doing > > PetscMatrix * pmatrix = libmesh_cast_ptr*, > SparseMatrix >(this->_matrix); Try: PetscMatrix *pmatrix = libmesh_cas

[Libmesh-devel] Issue with libmesh_cast_ptr

2009-02-04 Thread Derek Gaston
So I just tried to use libmesh_cast_ptr for the first time and I'm not really sure about the interface. Here's what I'm doing PetscMatrix * pmatrix = libmesh_cast_ptr*, SparseMatrix >(this->_matrix); What I don't like is how you have to pass Tnew as a pointer type (ie with a *) but To