Title
Limit on recursively nested template instantiations
Status
cd2
Section
Clause [Annex] B [implimits]
Submitter
DE

Created on 2009-03-03.00:00:00 last changed 171 months ago

Messages

Date: 2009-10-15.00:00:00

[Voted into WP at October, 2009 meeting.]

Date: 2009-09-15.00:00:00

Proposed resolution (September, 2009):

Change Clause Annex B [implimits], the fourth bullet from the end, as follows:

  • Recursively nested template instantiations [17 1 024].
Date: 2009-07-15.00:00:00

Notes from the July, 2009 meeting:

The consensus of the CWG was to increase the limit to 1024.

Date: 2009-03-03.00:00:00
N2800 comment DEĀ 25

The limit of 17 recursively-nested template instantiations is too small for modern programming practices such as template metaprogramming. It is unclear, however, whether this is a useful metric; see this paper for an example that honors the limit but results in over 750 billion instantiations.

History
Date User Action Args
2010-03-29 00:00:00adminsetstatus: dr -> cd2
2009-11-08 00:00:00adminsetmessages: + msg2482
2009-11-08 00:00:00adminsetstatus: tentatively ready -> dr
2009-09-29 00:00:00adminsetmessages: + msg2302
2009-09-29 00:00:00adminsetstatus: drafting -> tentatively ready
2009-08-03 00:00:00adminsetmessages: + msg2207
2009-08-03 00:00:00adminsetstatus: open -> drafting
2009-03-03 00:00:00admincreate