Nov 9, 2004 #1 sulacco Technical User Nov 8, 2002 74 RU I want create function in class which returns pointer on itself. How member function of class looks like which returns a pointer on the class itself?
I want create function in class which returns pointer on itself. How member function of class looks like which returns a pointer on the class itself?
Nov 9, 2004 #2 chipperMDW Programmer Mar 24, 2002 1,268 US > How member function of class looks like which returns a pointer on the class itself? Pointer to the class? If you want to return a pointer to the object, use the keyword [tt]this[/tt]. Upvote 0 Downvote
> How member function of class looks like which returns a pointer on the class itself? Pointer to the class? If you want to return a pointer to the object, use the keyword [tt]this[/tt].
Nov 9, 2004 #3 timmay3141 Programmer Dec 3, 2002 468 US C++ isn't Java or C#, there is no Class class, there is no reflection, and you can't do anything like that. Sorry. Upvote 0 Downvote
C++ isn't Java or C#, there is no Class class, there is no reflection, and you can't do anything like that. Sorry.