From 357cd1e1221aba511e704362508b9832a7b7f237 Mon Sep 17 00:00:00 2001 From: jbeder Date: Wed, 2 Mar 2011 05:15:36 +0000 Subject: [PATCH] Fixed 'long long' error in VS 2002, issue 90 --- include/yaml-cpp/traits.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/yaml-cpp/traits.h b/include/yaml-cpp/traits.h index 46db01b..e9c42ad 100644 --- a/include/yaml-cpp/traits.h +++ b/include/yaml-cpp/traits.h @@ -17,8 +17,13 @@ namespace YAML template <> struct is_numeric { enum { value = true }; }; template <> struct is_numeric { enum { value = true }; }; template <> struct is_numeric { enum { value = true }; }; +#if defined(_MSC_VER) && (_MSC_VER < 1310) + template <> struct is_numeric <__int64> { enum { value = true }; }; + template <> struct is_numeric { enum { value = true }; }; +#else template <> struct is_numeric { enum { value = true }; }; template <> struct is_numeric { enum { value = true }; }; +#endif template <> struct is_numeric { enum { value = true }; }; template <> struct is_numeric { enum { value = true }; }; template <> struct is_numeric { enum { value = true }; };