From e6eee3ecdc6d52f1d6872b827ef16c4af71cb78d Mon Sep 17 00:00:00 2001 From: Juraj Ivancic Date: Wed, 7 Dec 2011 10:40:13 +0100 Subject: [PATCH] Resurrect c++-template-depth feature. --- src/tools/builtin.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tools/builtin.py b/src/tools/builtin.py index 8825f5d7b..68ddfed4b 100644 --- a/src/tools/builtin.py +++ b/src/tools/builtin.py @@ -196,6 +196,14 @@ def register_globals (): 'on'], # Fail the compilation if there are warnings. ['incidental', 'propagated']) + feature.feature('c++-template-depth', + [str(i) for i in range(64,1024+1,64)] + + [str(i) for i in range(20,1000+1,10)] + + # Maximum template instantiation depth guaranteed for ANSI/ISO C++ + # conforming programs. + ['17'], + ['incidental', 'optional', 'propagated']) + feature.feature ('source', [], ['free', 'dependency', 'incidental']) feature.feature ('library', [], ['free', 'dependency', 'incidental']) feature.feature ('file', [], ['free', 'dependency', 'incidental'])