Boost C++ Libraries: Ticket #3989: Syntax error -- missing "template" keyword https://svn.boost.org/trac10/ticket/3989 <p> Index: detail/ptree_implementation.hpp =================================================================== --- detail/ptree_implementation.hpp (revision 60372) +++ detail/ptree_implementation.hpp (working copy) @@ -770,7 +770,7 @@ </p> <blockquote> <p> Translator tr) const </p> </blockquote> <blockquote> <p> { </p> <blockquote> <p> if (optional&lt;const self_type&amp;&gt; child = get_child_optional(path)) </p> </blockquote> </blockquote> <ul><li> return child.get().get_value_optional&lt;Type&gt;(tr); </li></ul><p> + return child.get().template get_value_optional&lt;Type&gt;(tr); </p> <blockquote> <p> else </p> <blockquote> <p> return optional&lt;Type&gt;(); </p> </blockquote> </blockquote> <blockquote> <p> } </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3989 Trac 1.4.3 anonymous Tue, 09 Mar 2010 00:04:09 GMT <link>https://svn.boost.org/trac10/ticket/3989#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3989#comment:1</guid> <description> <p> Whoops, here's the patch in a more readable format. </p> <pre class="wiki">Index: detail/ptree_implementation.hpp =================================================================== --- detail/ptree_implementation.hpp (revision 60372) +++ detail/ptree_implementation.hpp (working copy) @@ -770,7 +770,7 @@ Translator tr) const { if (optional&lt;const self_type&amp;&gt; child = get_child_optional(path)) - return child.get().get_value_optional&lt;Type&gt;(tr); + return child.get().template get_value_optional&lt;Type&gt;(tr); else return optional&lt;Type&gt;(); } </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sat, 13 Mar 2010 01:05:08 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3989#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3989#comment:2</guid> <description> <p> "libs/multi_array/example/for_each.hpp" is also missing a necessary keyword on this line: </p> <pre class="wiki"> for_each(boost::type&lt;TYPENAME Array::element&gt;(),A.begin(),A.end(),xform); </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Tue, 27 Apr 2010 09:36:14 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3989#comment:3 https://svn.boost.org/trac10/ticket/3989#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/61610" title="Add a missing template keyword. Fixes bug 3989.">[61610]</a>) Add a missing template keyword. Fixes bug 3989. </p> Ticket Sebastian Redl Tue, 27 Apr 2010 09:37:40 GMT status, component, severity, milestone changed; resolution deleted https://svn.boost.org/trac10/ticket/3989#comment:4 https://svn.boost.org/trac10/ticket/3989#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">fixed</span> </li> <li><strong>component</strong> <span class="trac-field-old">property_tree</span> → <span class="trac-field-new">multi_array</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Showstopper</span> → <span class="trac-field-new">Problem</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.43.0</span> → <span class="trac-field-new">Boost 1.44.0</span> </li> </ul> <p> Reassigning to multi_array for the issue in the comment. </p> Ticket Jeremiah Willcock Tue, 08 Jun 2010 22:56:24 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3989#comment:5 https://svn.boost.org/trac10/ticket/3989#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/62607" title="Added missing typename; fixes #3989">[62607]</a>) Added missing typename; fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3989" title="#3989: Bugs: Syntax error -- missing &#34;template&#34; keyword (closed: fixed)">#3989</a> </p> Ticket Jeremiah Willcock Tue, 05 Oct 2010 18:25:41 GMT <link>https://svn.boost.org/trac10/ticket/3989#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3989#comment:6</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/65771" title="Merged r46508 (bug fixes), r53790 (added test case), r62605 (fix for ...">[65771]</a>) Merged <a class="changeset" href="https://svn.boost.org/trac10/changeset/46508" title="fixed bugs. ">r46508</a> (bug fixes), <a class="changeset" href="https://svn.boost.org/trac10/changeset/53790" title="Added a test-case to check a reversing view of a 1D array. ">r53790</a> (added test case), <a class="changeset" href="https://svn.boost.org/trac10/changeset/62605" title="Fixed typo in doc example; fixes #3581">r62605</a> (fix for <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3581" title="#3581: Bugs: MultiArray storage order example incorrect for fortran_storage_ordering (closed: fixed)">#3581</a>), <a class="changeset" href="https://svn.boost.org/trac10/changeset/62606" title="Changed &#34;times&#34; to &#34;multiplies&#34; as per #3820; fixes #3820">r62606</a> (fix for <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3820" title="#3820: Bugs: MultiArray reference manual: please replace std::times by std::multiplies (closed: fixed)">#3820</a>), <a class="changeset" href="https://svn.boost.org/trac10/changeset/62607" title="Added missing typename; fixes #3989">r62607</a> (fix for <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3989" title="#3989: Bugs: Syntax error -- missing &#34;template&#34; keyword (closed: fixed)">#3989</a>), <a class="changeset" href="https://svn.boost.org/trac10/changeset/62609" title="Fixed missing header">r62609</a> (missing header), <a class="changeset" href="https://svn.boost.org/trac10/changeset/62963" title="Fixed an assertion error...resize needs to account for starting with ...">r62963</a> (non-Trac bug fixes) from trunk; refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3581" title="#3581: Bugs: MultiArray storage order example incorrect for fortran_storage_ordering (closed: fixed)">#3581</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3820" title="#3820: Bugs: MultiArray reference manual: please replace std::times by std::multiplies (closed: fixed)">#3820</a>, <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3989" title="#3989: Bugs: Syntax error -- missing &#34;template&#34; keyword (closed: fixed)">#3989</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>