Is there a PrintingPolicy that allows me to print template default arguments when they ra enot explifitly specified?

Hi,

Suppose I have a template:

template<typename T, int N=100> class Foo {};

Now, if there is only a declaration for this available, it can not include the default argument.

So:

template<typename T, int N> class Foo;

So, a function (or anything else) that is using it in the declaration, should be rewritten from:

Foo

to

Foo<MyTypename,100>

Is there a way to tell TypePrinter to do this?

If not will a patch be welcome?

Or am I approaching the problem in a roundabout manner ?

Thanks

Manasij Mukherjee

Typos in Subject line, should be:

“Is there a PrintingPolicy that allows me to print template default arguments when they are not explicitly specified?”