Passing pointers to methods.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Equus

    #1

    Passing pointers to methods.

    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::myMeth od(param a, toBeUpdated* b)
    {

    if(a == myDataMember) {

  • Victor Bazarov

    #2
    Re: Passing pointers to methods.

    Equus wrote:
    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::myMeth od(param a, toBeUpdated* b)
    {
    >
    if(a == myDataMember) {
    What's weird about it? Or did you press "send" too soon?

    V
    --
    Please remove capital 'A's when replying by e-mail
    I do not respond to top-posted replies, please don't ask


    Comment

    Working...