the programe :
interface Interface
{
void Method();
};
template CInterfaceImpl(Host)
{
void Method()
{
printf("hello");
}
}
class ClassOne : Interface
{
mixin CInterfaceImpl!(ClassOne, Interface);
};
int main(char[][] argv)
{
Interface p = new ClassOne;
p.Method();
return 0;
}
compile error normally but give a confusing error:
iftest.d(17): mixin mixin CInterfaceImpl!(ClassOne,Interface);
does not match any template declaration
what's the "mixin mixin"?