Function signature constraint syntax
H. S. Teoh
hsteoh at quickfur.ath.cx
Thu Feb 2 21:04:02 PST 2012
Quick question: I have a function that takes an alias parameter:
struct X { ... };
void func(alias G)(object O) {
...
X x = ...;
G(x);
...
}
How do I write a signature constraint that essentially specifies that G
should take a parameter of type X and return void?
T
--
When solving a problem, take care that you do not become part of the problem.
More information about the Digitalmars-d-learn
mailing list