From ba74465fbcd2509415397c1df93b1c86e70a45ab Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 20 Nov 2014 23:07:22 +0100 Subject: [PATCH] cmGeneratorTarget: Remove MSVC7 workaround Use partial specialization everywhere. --- Source/cmGeneratorTarget.cxx | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 5836a273c..2b531e27a 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -56,7 +56,6 @@ struct ModuleDefinitionFileTag {}; struct AppManifestTag{}; struct CertificatesTag{}; -#if !defined(_MSC_VER) || _MSC_VER >= 1310 template struct IsSameTag { @@ -72,25 +71,6 @@ struct IsSameTag Result = true }; }; -#else -struct IsSameTagBase -{ - typedef char (&no_type)[1]; - typedef char (&yes_type)[2]; - template struct Check; - template static yes_type check(Check*, Check*); - static no_type check(...); -}; -template -struct IsSameTag: public IsSameTagBase -{ - enum { - Result = (sizeof(check(static_cast< Check* >(0), - static_cast< Check* >(0))) == - sizeof(yes_type)) - }; -}; -#endif template struct DoAccept