limiting templates

BCS ao at pathlink.com
Tue May 1 15:31:31 PDT 2007


I have a template

int Foo(T)(T bar);

I want to be able to call it like this:

foo("hello");

and have T end up as char[] not char[5]. Is there any way to limit the template 
to that?




More information about the Digitalmars-d-learn mailing list