[GiNaC-list] Getting a pointer to an element in a list?
Christian Bauer
Christian.Bauer at uni-mainz.de
Tue Aug 16 21:11:37 CEST 2005
Hi!
On Wed, Aug 17, 2005 at 01:25:16AM +1000, John Pye wrote:
> const ex * getExpressionPtr(const unsigned &i) const{
> *return* &(F[i]);
> }
Hm, why do you want to do this? An 'ex' is already a pointer to something,
so I don't see much advantage over
ex getExpression(unsigned i) const { return F[i]; }
Bye,
Christian
--
/ Physics is an algorithm
\/ http://www.uni-mainz.de/~bauec002/
More information about the GiNaC-list
mailing list