|
Boost : |
From: Michael Fawcett (michael.fawcett_at_[hidden])
Date: 2008-05-02 11:06:31
On Fri, May 2, 2008 at 4:44 AM, Bruno Lalande <bruno.lalande_at_[hidden]> wrote:
> > > template <int I> value() const;
> >
> > Could you just specialize boost::get?
>
> I'm not sure to understand. Do you mean that you'd like the point
> concept to require that the provided point is accessible by
> boost::get?
Yes, although I still maintain that it shouldn't be called a
PointConcept. You show your "value" template function that does
basically the same thing as boost::get.
Instead of:
brunos::value<0>(myvec);
it should be:
boost::get<0>(myvec);
IMHO...
--Michael Fawcett
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk