Boost C++ Libraries: Ticket #12918: Spirit:extra template parameters in mini_c sample https://svn.boost.org/trac10/ticket/12918 <p> as the following code shows,<br /> <strong>boost_1_63_0\boost\utility\result_of.hpp</strong> </p> <pre class="wiki"> . . . template&lt;typename F, typename FArgs&gt; struct result_of_nested_result : F::template result&lt;FArgs&gt; {}; . . . </pre><p> struct <strong>result</strong> only needs one template parameter.But in the next two files in mini_c sample, <strong>result</strong> is provided more template parameters. Because of this, the code can't ran successfully. </p> <p> <strong>I write "/* */" behind the code need to be removed</strong> </p> <p> <strong>boost_1_63_0\libs\spirit\example\qi\compiler_tutorial\mini_c\annotation.hpp</strong><br /> </p> <pre class="wiki">#if !defined(BOOST_SPIRIT_MINIC_ANNOTATION_HPP) #define BOOST_SPIRIT_MINIC_ANNOTATION_HPP #include &lt;map&gt; #include &lt;boost/variant/apply_visitor.hpp&gt; #include &lt;boost/type_traits/is_base_of.hpp&gt; #include &lt;boost/mpl/bool.hpp&gt; #include "ast.hpp" namespace client { template &lt;typename Iterator&gt; struct annotation { template &lt;typename,typename&gt; /*the second "typename" need to be removed*/ struct result { typedef void type; }; std::vector&lt;Iterator&gt;&amp; iters; annotation(std::vector&lt;Iterator&gt;&amp; iters) : iters(iters) {} . . . } } </pre><p> <strong>boost_1_63_0\libs\spirit\example\qi\compiler_tutorial\mini_c\error_handler.hpp</strong> </p> <pre class="wiki">#if !defined(BOOST_SPIRIT_MINIC_ERROR_HANDLER_HPP) #define BOOST_SPIRIT_MINIC_ERROR_HANDLER_HPP #include &lt;iostream&gt; #include &lt;string&gt; #include &lt;vector&gt; namespace client { template &lt;typename Iterator&gt; struct error_handler { template &lt;typename, typename, typename&gt; /*the second and the third "typename" need to be removed*/ struct result { typedef void type; }; error_handler(Iterator first, Iterator last) : first(first), last(last) {} . . . } } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12918 Trac 1.4.3 timmyli Mon, 20 Mar 2017 12:08:33 GMT cc set https://svn.boost.org/trac10/ticket/12918#comment:1 https://svn.boost.org/trac10/ticket/12918#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">942748117@…</span> added </li> </ul> Ticket Kohei Takahashi Tue, 21 Mar 2017 01:20:55 GMT component changed; owner set https://svn.boost.org/trac10/ticket/12918#comment:2 https://svn.boost.org/trac10/ticket/12918#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">Joel de Guzman</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">spirit</span> </li> </ul> Ticket