From 16c65edb0e74b15fef54934e4d4eeebcf19ec600 Mon Sep 17 00:00:00 2001 From: humesikkins Date: Thu, 27 Feb 2003 15:53:29 +0000 Subject: [PATCH] Added missing parameter to OnUnknownType git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@103 7ec92016-0320-0410-acc4-a06ded1c099a --- MSVC/1200/Factory.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/MSVC/1200/Factory.h b/MSVC/1200/Factory.h index 0d0376e..8894866 100644 --- a/MSVC/1200/Factory.h +++ b/MSVC/1200/Factory.h @@ -12,8 +12,11 @@ // suitability of this software for any purpose. It is provided "as is" // without express or implied warranty. //////////////////////////////////////////////////////////////////////////////// - -// Last update: Oct 24, 2002 +// +// Last update: Feb 22, 2003 +// +// +// The default error policy is no longer a template-class #ifndef FACTORY_INC_ #define FACTORY_INC_ @@ -38,9 +41,10 @@ namespace Loki }; template - static AbstractProduct* OnUnknownType(IdentifierType) + static AbstractProduct* OnUnknownType(IdentifierType s,Type2Type) { - throw Exception(); + throw Exception(); + return (AbstractProduct*) 0; } }; @@ -78,7 +82,7 @@ namespace Loki { return (i->second)(); } - return OnUnknownType(id); + return OnUnknownType(id, Type2Type()); } private: @@ -124,7 +128,7 @@ namespace Loki { return (i->second)(model); } - return OnUnknownType(TypeInfo(typeid(*model)),(AbstractProduct*)0); + return OnUnknownType(TypeInfo(typeid(*model)),Type2Type()); } private: @@ -141,6 +145,7 @@ namespace Loki // Credit due to Jason Fischl. // Oct 24, 2002: ported to MSVC 6 by Benjamin Kaufmann. // Note: The default error policy is no longer a template-class. +// Feb 22, 2003: Added missing parameter to OnUnknownType B.K. //////////////////////////////////////////////////////////////////////////////// #endif // FACTORY_INC_