can I get public alias to private templates?

BCS ao at pathlink.com
Thu May 17 14:34:24 PDT 2007


I have a struct like this

Struct
{
void go(T)(T v){}
}

and I want to only allow access to go with a finite set of parameters. My 
first thought was this:

Struct
{
private void goT(T)(T v){}
public alias goT!(int) go;
public alias goT!(char) go;
public alias goT!(byte) go;
public alias goT!(float) go;
}

But you cant tunnel through private with a public alias. Does anyone known 
of a clean get somthing like this? Wrapper functions are not an option.




More information about the Digitalmars-d-learn mailing list