>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:

Angus> Things are always copied on return. That's why things like
Angus> reference counters were invented; the main class holds just a
Angus> pointer that points to the data structure. Only the pointer is
Angus> then copied on return.

And is the vector class reference-counted? I guess the answer is no... 

Am I the only one finding that this is stupid? It should be possible
to return an object from a function without doing a copy...

JMarc

Reply via email to