Subject: [ggl] distance and reversible
From: Mateusz Loskot (mateusz)
Date: 2009-05-06 06:30:31
>>> The reverse metafunction is a good idea. It however needs to copy its
>>> arguments. I wrote "copy constructor" but now that I write this mail I
>>> realize that it is not, it is an overloaded constructor.
>> Sorry, but I've not got into details of this problem, so I don't have
>> much to say. Perhaps a few cents, if you're talking about real copy ctor
>> then I'd suggest to add assignment operator too.
> It is an overloaded constructor. So no copy. No assignment necessary.
Ah, right. I've misunderstood you are going to add real copy ctor.
>>>> - Will this constructor be used implicitly or explicitly?
>>>> - If used implicitly, where will the conversion occur exactly?
>>>> - If used explicitly, how do you obtain the type of the reversed
>>> I think it will be used explicitly.
>> Then I'd suggest to provide also assignment operator.
> Why actually? Also if it is not a copy ctor?
Sure. My misunderstanding.
I thought the template copy ctor was supposed to work as real copy ctor
and as it doesn't then you're going to add the real copy ctor
instead, so I suggested to add operator= along.
-- Mateusz Loskot, http://mateusz.loskot.net
Geometry list run by mateusz at loskot.net