
Thorsten Ottosen <tottosen@dezide.com> writes:
Daniel Walker wrote:
Hello,
I've been using the Boost Range library a lot lately and felt the need for some compile-time concept checks. They're pretty simple to write using the Boost Concept Check library. So, I wrote concept checking classes for the four range concepts mentioned in the documentation. To illustrate their usage, the following checks if a type X models the ForwardRange concept.
Anyway, I hope there's enough interest to include concept checks like these in the Boost Range library for a future release. I'd be glad to submit a file containing my implementations. Please, let me know what you think!
I haven't got time to look at you implementation, but I'm confident it would be a nice addition to the concept-check library. Try to contact the author/maintainer of that library directly.
Concept checks for the Range concepts belong in the range library. The concept check library shouldn't be grown to include checks for every concept defined by another library author. -- Dave Abrahams Boost Consulting www.boost-consulting.com