|
Boost : |
From: Simonson, Lucanus J (lucanus.j.simonson_at_[hidden])
Date: 2007-10-08 19:09:56
John Femiani wrote:
>So then is it fair to say that GTL will provide ConceptMap features
>compatible with current compilers? Is BGL hoping to become
>Boost.ConceptMap + Boost.Point + Boost.RectilinearRegion ? I saw some
>code in this thread where concepts were used in assertions -- is
supposed >to be a GTL version of the concept axioms proposed for c++0x?
I'm not sure how we might factor out the basic idea of ConceptMap as I
applied it to become a stand-alone library. It is a design pattern that
I repeat about twelve times in my library, so there is scope to factor
it out, I just don't see how that factoring could be done in a useful
way.
It did occur to me to try to implement compile time concept checking,
but in the end I just check everything with runtime unit tests that
instantiate the templates and make sure everything is hooked up properly
that way. Those were supposed to be runtime asserts you were looking
at.
Certainly I would like to take things in the direction of showing how
the benefits proposed for c++0x proposal for concept_map are available
now using traditional templates (enough of them anyway) but I authored
the design pattern before becoming aware of the c++0x proposal, so I
can't claim that was my intention.
It may be that the scope of the proposed submission is too large, or not
sufficiently focused. That is something we should be trying to figure
out.
Luke
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk