From 397f6d293cdc1703e045ff8e1d8be3da5a4bc4d6 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sun, 5 Feb 2012 16:05:33 -0500 Subject: [PATCH] apparently template constraints dont work on class templates with inheritance --- httpd.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpd.d b/httpd.d index 7f2b598..def1571 100644 --- a/httpd.d +++ b/httpd.d @@ -40,7 +40,7 @@ void serveHttp(CustomCgi)(void function(Cgi) requestHandler, ushort port) if(is( 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; 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 this(void function(Cgi) requestHandler) {