Jaakko Jarvi wrote code that looks like this:
template <bool B, class T = void> struct disable_if: public enable_if< !B, T> {}; I have a question regarding compile time: Do you have experience about whether this elegant solution might have some compile time penalty due to inheritance? Or is this faster than doubling the code? IIRC I had such an issue with at least Intel's 7.0 where I found that removing inheritance brought speed. And for such a widely used feature this might be important. You 2 cent appreciated. Markus -- Build your own Expression Template Library with Daixtrose! Visit http://daixtrose.sourceforge.net/ _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost