-
January 16th, 2010, 02:32 AM
#1
How to create a pointer to 'this'?
Hi all,
I'm wondering how to create a pointer to 'this'. I have an implementation of a dynamic memory list, but it takes pointers to the objects to allow the addition of arrays, and so, when I tried to add 'this' it doesn't work. I either get 'illegal lvalue to unary &', or, when I tried to write a method that took single objects, segmentation faults at runtime. So I'm wondering if there is a way to create a pointer to a this object.
Thanks,
Singing Boyo
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|