
2 Nov
2006
2 Nov
'06
6:43 p.m.
"Ovanes Markarian" <om_boost@keywallet.com> writes:
Hi!
Thanks for the great library. Currently I have to deal with constants as template parameters and I wonder, why there is no library to model constant concepts. Like:
template<class T, size_t MAX_SIZE> struct Allocator { Allocator()throw(); };
template<class T, size_t MAX_SIZE> Allocator<T,MAX_SIZE>::Allocator()throw() { boost::function_requires<ConstGreaterThen<MAX_SIZE,O> >(); }
I understand I could model it with BOOST_MPL_ASSERT etc. But would not it be better to unite all these features in one lib?
I'm not sure what you're suggesting, sorry. -- Dave Abrahams Boost Consulting www.boost-consulting.com