In our last exciting episode Markus Werle wrote:
> Lines: 24
> Mail-Copies-To: [EMAIL PROTECTED]
> User-Agent: KNode/0.6.1

> 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?

We have made no measurements. The use of inheritance is motivated by getting
a miniscule bit of reuse.
If another formulation leads to better compile-time or runtime
performance, it's worth while to change.


  Cheers, Jaakko

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to