diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index 251a04397b..646300d57c 100644 --- a/Source/cmStandardIncludes.h +++ b/Source/cmStandardIncludes.h @@ -239,7 +239,20 @@ private: namespace ContainerAlgorithms { -template +template +struct cmIsPair +{ + enum { value = false }; +}; + +template +struct cmIsPair > +{ + enum { value = true }; +}; + +template::value> struct DefaultDeleter { void operator()(typename Container::value_type value) { @@ -247,10 +260,10 @@ struct DefaultDeleter } }; -template -struct DefaultDeleter > +template +struct DefaultDeleter { - void operator()(typename std::map::value_type value) { + void operator()(typename Container::value_type value) { delete value.second; } };