[Boost-bugs] [Boost C++ Libraries] #2034: Problem with nesting templates with same parameter names

Subject: [Boost-bugs] [Boost C++ Libraries] #2034: Problem with nesting templates with same parameter names
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-06-22 20:56:03


#2034: Problem with nesting templates with same parameter names
--------------------------+-------------------------------------------------
 Reporter: rk | Owner: djowel
     Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: quickbook
  Version: Boost 1.35.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 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.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2034>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC