10 Aug
2008
10 Aug
'08
9:52 p.m.
on Sun Aug 10 2008, "joel falcou"
Another question about concepts :
how can I build a concept which requires a given type X to either have an associated type named foo or an associated type named bar (silly names for example purpose). Checking for both is easy but i can't find how to check for OR another.
I would say don't. It's not friendly to generic code and it sounds like "or constraints" which were left out of C++0x for very good reasons. If you could be more specific about what you're trying to do I might be able to help find a better solution. My first guess is that the answer will be found in the use of traits. -- Dave Abrahams BoostPro Computing http://www.boostpro.com