Opened 14 years ago
Closed 13 years ago
#2034 closed Bugs (fixed)
Problem with nesting templates with same parameter names
Reported by: | rk | Owned by: | Daniel James |
---|---|---|---|
Milestone: | Boost 1.41.0 | Component: | quickbook |
Version: | Boost 1.35.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Having the code:
11. [template same[x] [x]] 12. [template echo[a b] [a] [b]] 13. [template echo_twice[x] [echo [same [x]]..[same [x]]]] 14. [echo_twice foo]
I get:
13: error: Infinite loop detected 12: error: Invalid number of arguments passed. Expecting: 0 argument(s), got: 1 argument(s) instead.
However, if x is changed to something different in line 11., it compiles fine.
Change History (7)
comment:1 by , 14 years ago
Milestone: | Boost 1.36.0 → To Be Determined |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 13 years ago
comment:3 by , 13 years ago
Milestone: | To Be Determined → Boost 1.40.0 |
---|
comment:4 by , 13 years ago
Milestone: | Boost 1.40.0 → Boost 1.41.0 |
---|
comment:6 by , 13 years ago
(In [56752]) Merge quickbook 1.5 from trunk.
Merged revisions 55905-55917,56077,56715,56717-56719 via svnmerge from https://svn.boost.org/svn/boost/trunk
........
r55905 | danieljames | 2009-08-31 12:36:13 +0100 (Mon, 31 Aug 2009) | 1 line
Update quickbook version number.
........
r55906 | danieljames | 2009-08-31 12:36:23 +0100 (Mon, 31 Aug 2009) | 4 lines
Create entry for 1.5 in the change log.
Starting it of with some of the changes that have been made to quickbook since 1.4 - considering the first 1.4 release as the proper 1.4 release.
........
r55907 | danieljames | 2009-08-31 12:36:34 +0100 (Mon, 31 Aug 2009) | 3 lines
Wrap the template info in a struct.
So that I can add extra scoping info.
........
r55908 | danieljames | 2009-08-31 12:36:47 +0100 (Mon, 31 Aug 2009) | 1 line
Implement static/lexical scoping for 1.5. Refs #2034.
........
r55909 | danieljames | 2009-08-31 12:37:04 +0100 (Mon, 31 Aug 2009) | 1 line
In quickbook 1.5 don't mix '..' and whitespace seperators for template arguments. Refs #1174
........
r55910 | danieljames | 2009-08-31 12:37:17 +0100 (Mon, 31 Aug 2009) | 2 lines
Put the quickbook version numbers in a single header, along with convenience functions for using them in spirit grammars.
........
r55911 | danieljames | 2009-08-31 12:37:32 +0100 (Mon, 31 Aug 2009) | 3 lines
Ignore spaces after 'section:' for quickbook 1.5+ Refs #2712
And warn when section id is empty after colon.
........
r55912 | danieljames | 2009-08-31 12:37:48 +0100 (Mon, 31 Aug 2009) | 1 line
Introduce temporary id variable.
........
r55913 | danieljames | 2009-08-31 12:37:59 +0100 (Mon, 31 Aug 2009) | 1 line
Table ids. Refs #1194.
........
r55914 | danieljames | 2009-08-31 12:38:11 +0100 (Mon, 31 Aug 2009) | 1 line
Separate out the current version of the template argument parser, as I want to create a new one for 1.5
........
r55915 | danieljames | 2009-08-31 12:38:20 +0100 (Mon, 31 Aug 2009) | 1 line
Don't use seperators that are in brackets, or are escaped. Refs #2036.
........
r55916 | danieljames | 2009-08-31 12:38:33 +0100 (Mon, 31 Aug 2009) | 1 line
Add missing table tests.
........
r55917 | danieljames | 2009-08-31 12:38:47 +0100 (Mon, 31 Aug 2009) | 1 line
Support image attributes. Refs #1157.
........
r56077 | djowel | 2009-09-07 02:35:24 +0100 (Mon, 07 Sep 2009) | 1 line
fix for msvc
........
r56715 | danieljames | 2009-10-11 17:18:04 +0100 (Sun, 11 Oct 2009) | 1 line
Use qualified ids in tables, and fix a bug generating ids when there isn't a section.
........
r56717 | danieljames | 2009-10-11 19:21:11 +0100 (Sun, 11 Oct 2009) | 1 line
Document the simplified quickbook 1.5 argument separators.
........
r56718 | danieljames | 2009-10-11 19:21:32 +0100 (Sun, 11 Oct 2009) | 1 line
Use quickbook 1.5 in the document block example.
........
r56719 | danieljames | 2009-10-11 19:21:48 +0100 (Sun, 11 Oct 2009) | 1 line
Add table ids to the documentation.
........
comment:7 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed as long as the document is marked as quickbook 1.5.
(In [53451]) Implement static/lexical scoping for 1.5. Refs #2034.