Boost logo

Boost :

From: Markus Werle (numerical.simulation_at_[hidden])
Date: 2003-07-15 09:33:18


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/ 

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk