Posted: Tue Aug 28, 2007 10:12 am
oh shiza.
i addd the copy ctor for list like you pretty much had osdev64 and then all friggin hell broke loose.
if i let the compiler supply it, it seems fine. im lost.
which brings me to another question:
Do i want object declared like this:
to behave the SAME AS this:
???????
It seems that the copy ctor is only envoked for objects like so:
but not for:
Somebody pleez explain what the frick is up with all this!?!
i addd the copy ctor for list like you pretty much had osdev64 and then all friggin hell broke loose.
if i let the compiler supply it, it seems fine. im lost.
which brings me to another question:
Do i want object declared like this:
Code: Select all
dlist<int> list;
dlist<int> list2 = list;
dlist<int> list3(list2);
Code: Select all
dlist<int> *list = new dlist<int>();
dlist<int> *list2 = list;
dlist<int> *list3(list2);
It seems that the copy ctor is only envoked for objects like so:
Code: Select all
object myObject;
object another = myObject;
Code: Select all
object *myObject = new object();
ojbject *another = myObject;