
10 May
2008
10 May
'08
9:44 a.m.
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