S
Scott
Hello,
I am having some difficulty with the following C++:
I have a declared a pointer to Foo like so:
Foo *pFoo;
Now, I have an API object that I try to use like so:
fooAPI.processFoo( pFoo );
Then, I get a compiler error that the prototype for processFoo is
expecting a Foo&, but is instead getting a Foo*&. So, my question is: how
do I transform my *pFoo to a Foo&, and perhaps someone could also help me
understand exactly what the difference between the two is? I hope this is
a least somewhat clear.
Thank-you.
Scott
I am having some difficulty with the following C++:
I have a declared a pointer to Foo like so:
Foo *pFoo;
Now, I have an API object that I try to use like so:
fooAPI.processFoo( pFoo );
Then, I get a compiler error that the prototype for processFoo is
expecting a Foo&, but is instead getting a Foo*&. So, my question is: how
do I transform my *pFoo to a Foo&, and perhaps someone could also help me
understand exactly what the difference between the two is? I hope this is
a least somewhat clear.
Thank-you.
Scott