Boost logo

Boost-Build :

Subject: [Boost-build] template-depth hard coded to 128 on gcc
From: Wieger Wesselink (wieger_at_[hidden])
Date: 2013-05-14 11:32:45


Hello,

In gcc.jam the value of template-depth seems to be set to 128 if it is
undefined, using

    if ! $(template-depth)
    {
        TEMPLATE_DEPTH on $(<) = 128 ;
    }

However, the gcc manual states the following: "ANSI/ISO C++ conforming
programs must not rely on a maximum depth greater than 17 (changed to
1024 in C++11)". So it should not be set to 128 in C++11 mode. Can the
above statement be skipped when compiling in C++11 mode, or is it
difficult to detect this?

Best regards,

Wieger

-- 
http://www.fastmail.fm - A no graphics, no pop-ups email service

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk