mirror of https://github.com/adamdruppe/arsd.git
apparently template constraints dont work on class templates with inheritance
This commit is contained in:
parent
de154ec9f1
commit
397f6d293c
4
httpd.d
4
httpd.d
|
@ -40,7 +40,7 @@ void serveHttp(CustomCgi)(void function(Cgi) requestHandler, ushort port) if(is(
|
||||||
writefln("Exception: %s", e.toString());
|
writefln("Exception: %s", e.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
class NetMan(CustomCgi) : NetworkManager if(is(CustomCgi : Cgi)) {
|
class NetMan(CustomCgi) : NetworkManager /*if(is(CustomCgi : Cgi))*/ {
|
||||||
void function(Cgi) requestHandler;
|
void function(Cgi) requestHandler;
|
||||||
|
|
||||||
this(void function(Cgi) requestHandler) {
|
this(void function(Cgi) requestHandler) {
|
||||||
|
@ -52,7 +52,7 @@ class NetMan(CustomCgi) : NetworkManager if(is(CustomCgi : Cgi)) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class HttpdConnection(CustomCgi) : Connection if(is(CustomCgi : Cgi)) {
|
class HttpdConnection(CustomCgi) : Connection /* if(is(CustomCgi : Cgi)) */ {
|
||||||
// The way this rolls is to get the whole thing in memory, then pass it off to Cgi to do the rest
|
// The way this rolls is to get the whole thing in memory, then pass it off to Cgi to do the rest
|
||||||
|
|
||||||
this(void function(Cgi) requestHandler) {
|
this(void function(Cgi) requestHandler) {
|
||||||
|
|
Loading…
Reference in New Issue