
on Thu Oct 25 2012, Larry Evans <cppljevans-AT-suddenlink.net> wrote:
On 10/25/12 12:24, Thorsten Ottosen wrote: [snip]
I guess some of my confusion comes from reading
http://www.jot.fm/issues/issue_2008_02/article2.pdf
some time ago. I think this article is why I thought they were a bonus for compilation time.
In particular, page 33, in the last sentence before section 3, says:
Section 4 demonstrates how variadic templates drastically reduce compilation times
I believe that they do/can. However, getting the most performance out of variadic templates involves avoiding O(N) recursive template instantiations, which can be maddeningly difficult to achieve for some problems. -- Dave Abrahams BoostPro Computing Software Development Training http://www.boostpro.com Clang/LLVM/EDG Compilers C++ Boost