23 Apr
2014
23 Apr
'14
2:37 p.m.
Abel Sinkovics
Lazy code is compact and readable, but be careful with its impact on compilation speed and memory usage. It might significantly increase the number of template instantiations you need to make. (See "Boosting MPL with Haskell elements" from last year's C++Now for further details).
Thanks for the heads up. Laziness is of course undesirable for inherently strict algorithms. In particular, numeric metafunctions should probably be strict; I'm planning to use a constexpr-based implementation for those. As for sequence algorithms, I'm currently benchmarking several different solutions to try and see what's the best alternative. Regards, Louis