Boost logo

Boost :

From: Bruno Lalande (bruno.lalande_at_[hidden])
Date: 2008-05-10 05:44:56


>> If you don't want to do that right now because you're afraid
>> about the profusion of concept checking macros in your code,
>> I think that putting a BOOST_CONCEPT_ASSERT in the
>> point_traits class is sufficient with this approach, since
>> any access to a point should be performed only through this
>> class. This way, you don't have to rewrite the check in every
>> algorithm, and the only job you have to do is writing the
>> concept class. However, as I'm not used yet with the BCCL, I
>> can be wrong...?
>
> But what if somebody specializes your traits class? Then don't you lose
> the concept checks?

Ouch... you right, I hadn't realized that. OK so finally the only way
is to specify the requirements in every algorithm, indeed...

Bruno


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