Boost logo

Boost :

Subject: Re: [boost] Preview 3 of the Geometry Library
From: Bruno Lalande (bruno.lalande_at_[hidden])
Date: 2008-10-17 13:07:00


> What is wrong with
> typedef nsphere<2> circle;
> ?

Actually I made a mistake in the mail where I was talking about
nshpere<2>, the class would obviously not take the dimension directly
but the point type, which is itself of a certain dimension. So I guess
we'd rather have something like:

template <class P>
struct circle: nsphere<P>
{
    BOOST_STATIC_ASSERT(/*assert here that the dimension is 2*/);
}

Bruno


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