Boost logo

Boost :

Subject: Re: [boost] Interesting article on stack-based TMP
From: David Abrahams (dave_at_[hidden])
Date: 2012-10-27 20:47:03

on Thu Oct 25 2012, Larry Evans <> wrote:

> On 10/25/12 12:24, Thorsten Ottosen wrote:
> [snip]
>> I guess some of my confusion comes from reading
>> 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

Dave Abrahams
BoostPro Computing                  Software Development        Training             Clang/LLVM/EDG Compilers  C++  Boost

Boost list run by bdawes at, gregod at, cpdaniel at, john at