Re: ->setTravFuncs

New Message Reply Date view Thread view Subject view Author view

Les Elkins (lelkins++at++zeus.lnk.com)
Tue, 13 May 1997 17:32:48 -0400 (EDT)


>
> I recive the warning:
>
> warning(3676): pointer-to-member-function cast to pointer
> to function
>
> mv_body->setTravFuncs(PFTRAV_CULL,(pfNodeTravFuncType)walk,NULL);
>

I just had the same problem a couple of days ago, in that the C++
compiler would not let me make a reference to a member function in
anything other than an invocation. I assume this is disallowed to
make dealing with virtual functions easier. At any rate, I set
the traversal _data_ for the node to -this-, and used a callback
to a passthrough function to actually call the member function.

I would be interested to know why you can't do this as above...

-Les

-----------------------------------------------------------------------
        Les Elkins
        LNK Corporation, Inc
        Riverdale, MD
        (301) 927-3223
        lelkins++at++lnk.com
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:13 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.