Boost logo

Geometry :

Subject: [ggl] distance and reversible
From: Barend (barend)
Date: 2009-05-05 20:03:00


>> 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.
>
>
>>> - 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
>>> strategy?
>>>
>> 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?

Regards, Barend

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/ggl/attachments/20090505/9540e61a/attachment.html


Geometry list run by mateusz at loskot.net