<div class="gmail_quote">On Wed, Nov 28, 2012 at 10:05 AM, Robert Jones <span dir="ltr">&lt;<a href="mailto:robertgbjones@gmail.com" target="_blank">robertgbjones@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote">On Wed, Nov 28, 2012 at 5:56 PM, Jeffrey Lee Hellrung, Jr. <span dir="ltr">&lt;<a href="mailto:jeffrey.hellrung@gmail.com" target="_blank">jeffrey.hellrung@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div><div><br></div></div><div>Looks like gcc is instantiating the unary overloads of counting_range (with template parameter int) even though you&#39;re supplying 2 arguments...I&#39;m not sure if that is standard behavior or not; MSVC9 seems to do okay with it.<br>



<br>Is this is a real hindrance or merely curiosity?<br><br></div></div></blockquote><div><br></div><div>More curiosity now, as I can do what I need to do, but where I started from was...</div><div><br></div><div><font face="courier new, monospace">counting_range&lt;unsigned&gt;( 0, 3 )</font></div>


<div><br></div><div>So using arguments of type int, in a range of type unsigned, which doesn&#39;t work. I can of course do</div><div><br></div><div><font face="courier new, monospace">counting_range( 0U, 3U )</font></div>


<div><br></div><div>to get the same effect, but it&#39;s a bit inelegant!</div><div><br></div><div>I haven&#39;t investigated what <font face="courier new, monospace">counting_range( 0U, 3 )</font> does!</div></div></blockquote>
<div><br>Probably won&#39;t work :)<br><br>Sounds like your initial use case *should* be okay (seems to work on clang and msvc) and your version of gcc is incorrect in rejecting it. Consider reducing your use case down to be Boost-independent and filing a bug with gcc.<br>
<br>- Jeff<br><br></div></div>

