From 31af7f484e9712b141c72360e4c295585b1e9276 Mon Sep 17 00:00:00 2001 From: spog Date: Mon, 10 Apr 2006 10:35:59 +0000 Subject: [PATCH] fixed illegal template usage git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@47 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- libs/generic/functional.h | 22 ++++++++-------------- libs/signal/isignal.h | 16 ++++++++-------- 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/libs/generic/functional.h b/libs/generic/functional.h index ca1d8630..bd253486 100644 --- a/libs/generic/functional.h +++ b/libs/generic/functional.h @@ -296,23 +296,17 @@ public: } }; -template +template class TypeEqual { - template - class Match - { - public: - typedef False type; - }; - template<> - class Match - { - public: - typedef True type; - }; public: - typedef typename Match::type type; + typedef False type; +}; +template +class TypeEqual +{ +public: + typedef True type; }; diff --git a/libs/signal/isignal.h b/libs/signal/isignal.h index e6cb215d..4fe27471 100644 --- a/libs/signal/isignal.h +++ b/libs/signal/isignal.h @@ -89,10 +89,10 @@ public: template SignalHandler(const BindFirstOpaque& caller) : Callback0(BindFirstOpaque + SignalHandlerCaller1, + typename Caller::result_type >::type>(caller.getBound())) { } @@ -117,10 +117,10 @@ public: template SignalHandler1(const BindFirstOpaque1& caller) : Callback1(BindFirstOpaque1 + SignalHandlerCaller2, + typename Caller::result_type >::type>(caller.getBound())) { } @@ -145,10 +145,10 @@ public: template SignalHandler2(const BindFirstOpaque2& caller) : Callback2(BindFirstOpaque2 + SignalHandlerCaller3, + typename Caller::result_type >::type>(caller.getBound())) { } @@ -185,10 +185,10 @@ public: template SignalHandler3(const BindFirstOpaque3& caller) : Callback3(BindFirstOpaque3 + SignalHandlerCaller4, + typename Caller::result_type >::type>(caller.getBound())) { } -- 2.39.2