Boost C++ Libraries: Ticket #5817: Default template parameters for any_range https://svn.boost.org/trac10/ticket/5817 <p> Would it be possible that more template parameters of boost::any_range get a default value? </p> <p> It seems like <em>Reference</em> and <em>Difference</em> mostly refer to the same types. The declaration could look like this: </p> <div class="wiki-code"><div class="code"><pre><span class="k">template</span><span class="o">&lt;</span> <span class="k">class</span> <span class="nc">Value</span> <span class="p">,</span> <span class="k">class</span> <span class="nc">Traversal</span> <span class="p">,</span> <span class="k">class</span> <span class="nc">Reference</span> <span class="o">=</span> <span class="n">Value</span><span class="o">&amp;</span> <span class="p">,</span> <span class="k">class</span> <span class="nc">Difference</span> <span class="o">=</span> <span class="n">std</span><span class="o">::</span><span class="kt">ptrdiff_t</span> <span class="p">,</span> <span class="k">class</span> <span class="nc">Buffer</span> <span class="o">=</span> <span class="n">use_default</span> <span class="o">&gt;</span> <span class="k">class</span> <span class="nc">any_range</span><span class="p">;</span> </pre></div></div><p> This would also be consistent with boost::iterator_facade. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5817 Trac 1.4.3 Neil Groves Sun, 18 Mar 2012 22:26:51 GMT status changed https://svn.boost.org/trac10/ticket/5817#comment:1 https://svn.boost.org/trac10/ticket/5817#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Neil Groves Sat, 08 Mar 2014 21:18:03 GMT milestone changed https://svn.boost.org/trac10/ticket/5817#comment:2 https://svn.boost.org/trac10/ticket/5817#comment:2 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.56.0</span> </li> </ul> <p> Fix committed to the develop branch. The tests will need to cycle a few times and this should be merged for release 1.56 </p> Ticket Neil Groves Sun, 09 Mar 2014 07:39:21 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5817#comment:3 https://svn.boost.org/trac10/ticket/5817#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket