January 16th, 2010, 01:32 AM
How to create a pointer to 'this'?
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.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!