<div dir="ltr"><div>Typos in Subject line, should be:<br></div><div>"Is there a PrintingPolicy that allows me to print template default arguments when they are not explicitly specified?"<br></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Thu, Jul 3, 2014 at 5:56 AM, Manasij Mukherjee <span dir="ltr"><<a href="mailto:manasij7479@gmail.com" target="_blank">manasij7479@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Hi,<br></div>Suppose I have a template:<br></div>template<typename T, int N=100> class Foo {};<br><br></div>Now, if there is only a declaration for this available, it can not include the default argument.<br>


</div>So:<br></div>template<typename T, int N> class Foo;<br><br></div>So, a function (or anything else) that is using it in the declaration, should be rewritten from:<br></div>Foo<MyTypename> <br></div>to<br>


</div>Foo<MyTypename,100><br><br></div>Is there a way to tell TypePrinter to do this?<br></div>If not will a patch be welcome?<br></div>Or am I approaching the problem in a roundabout manner ?<br></div><br>Thanks<span class="HOEnZb"><font color="#888888"><br>


</font></span></div><span class="HOEnZb"><font color="#888888">Manasij Mukherjee<br></font></span></div>
</blockquote></div><br></div>