Simen kjaeraas wrote:
This still does not compile:

struct foo {
    void opDispatch( string name, T )( T value ) {
    }
}

void main( ) {
    foo f;
    f.bar( 3.14 );
}

test.d(10): Error: template instance opDispatch!("bar") does not match template
declaration opDispatch(string name,T)

It works when I try it.

Reply via email to