Boost logo

Boost :

Subject: Re: [boost] A design for geometric objects
From: Gordon Woodhull (gordon_at_[hidden])
Date: 2008-12-06 18:37:58


On Dec 6, 2008, at 12:39 AM, Simonson, Lucanus J wrote:
> Gordon wrote:
>> This approach leads to an combinatorial number of overloads, does it
>> not? Surely there must be a way to do static multiple dispatch using
>> metaprogramming instead.
>
> No, there are three algorithms and three overloads. Any combination
> of many possible inputs resolves to the correct algorithm through
> metaprogramming. This operator API is concepts based.

Excellent, I misunderstood. I think that design should scale much
better for new concepts. Personally I want beziers and splinegons.

Looking forward to seeing this and how it merges with the other
implementations.

> As it is I got a repetitive stress injury from typing typename,
> typedef ::type the < > and _ chars and saving ever twenty seconds
> with :w because I'm a vi user.

I got RSI before I knew about metaprogramming too. Now I think more
and type less. :D

Gordon


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