Boost logo

Boost :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-08-11 10:58:45


AMDG

Peter Bartlett wrote:
> Quoting Markus Schöpflin <markus.schoepflin_at_[hidden]>:
>> I still believe that the recursion depth is a function of the code, and
>> not the compiler, but there seems to be a difference in how the
>> recursion depth is calculated.
>
> It is a function of code, but bear in mind the code might be different
> for different compilers. Compiler workarounds in Boost code and
> different implementations of the the standard library are two possible
> reasons for different template instantiation depths.

Compilers don't have to instantiate templates in the same order
even if the code is identical. This could change the maximum depth
because of memoization.

In Christ,
Steven Watanabe


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