Passing pointers to methods.

E

Equus

Hi,

I have a weird case of a pointer, passed as an argument to a method,
not being assigned to the value it should.

My method is like this:

bool myClass::myMethod(param a, toBeUpdated* b)
{

if(a == myDataMember) {
 
V

Victor Bazarov

Equus said:
I have a weird case of a pointer, passed as an argument to a method,
not being assigned to the value it should.

My method is like this:

bool myClass::myMethod(param a, toBeUpdated* b)
{

if(a == myDataMember) {

What's weird about it? Or did you press "send" too soon?

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top