Boost logo

Boost :

Subject: Re: [boost] A design for geometric objects
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-11-15 19:36:10


AMDG

Mathias Gaunard wrote:
>> Clearly if a rectangle output is expected you cannot pass it a
>> mutable square to hold the result, but making such syntax illegal by
>> preventing the generic API from modifying objects seems like a
>> drastic measure. It eliminates more than half the utility of the
>> mechanism.
>
> I require any type fulfilling a concept to be constructible from an
> object of any type which fulfills that same concept.

Wait. How does that work:

Right triangle models Triangle.
Equilateral triangle models Triangle.
Therefore, right triangle can be converted to equilateral triangle?

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk