templates and scoping

Ellery Newcomer ellery-newcomer at utulsa.edu
Thu Apr 1 08:53:07 PDT 2010


this is going to be a bit of a nebulous question, but

if I define a template

template T(string s){
}

where s is an identifier, then is there a good way to branch T's 
behavior based on whether s is declared in the scope in which T gets 
instantiated?


More information about the Digitalmars-d-learn mailing list