From: Dave Abrahams (abrahams_at_[hidden])
Date: 2000-04-30 15:17:07


on 4/30/00 4:14 PM, Aleksey Gurtovoy at alexy_at_[hidden] wrote:

> John Maddock <John_Maddock_at_[hidden]> wrote:
>> Is there a limit to how far templates can nest like this?
> boost::operators
>> seems to go 12 levels deep - unless I'm wrong here - comments?
>>
> Good question. I haven't thought about it before you asked. For the moment I
> don't know anything about limitations of particular compilers, but the
> standard's appendix B - 'Implementation quantities' suggests '17' for the
> 'Recursively nested template instantiations'. But 'these quantities are only
> guidelines and do not determine compliance.'
> Any real-world data?

I can tell you that blitz++ requires a lot of template nesting. I think
anything supported at <http://www.oonumerics.org/blitz/platforms/> would
work, and Metrowerks would work too because its only real limitation is
"enum computations".