From b27aa50d6a8ad0d1cfa82decd2b8ee4062afc2af Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Mon, 26 Sep 2011 07:51:32 -0600 Subject: [PATCH] Minor cleanups in cv qualification removal --- include/chaiscript/dispatchkit/boxed_cast.hpp | 1 + include/chaiscript/dispatchkit/type_info.hpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/chaiscript/dispatchkit/boxed_cast.hpp b/include/chaiscript/dispatchkit/boxed_cast.hpp index b75e06f1..c4d820f5 100644 --- a/include/chaiscript/dispatchkit/boxed_cast.hpp +++ b/include/chaiscript/dispatchkit/boxed_cast.hpp @@ -68,6 +68,7 @@ namespace chaiscript return detail::Cast_Helper::cast(bv); } catch (const chaiscript::detail::exception::bad_any_cast &) { + #ifdef CHAISCRIPT_MSVC //Thank you MSVC, yes we know that a constant value is being used in the if // statment in THIS VERSION of the template instantiation diff --git a/include/chaiscript/dispatchkit/type_info.hpp b/include/chaiscript/dispatchkit/type_info.hpp index 87eddea0..3c2fb20d 100644 --- a/include/chaiscript/dispatchkit/type_info.hpp +++ b/include/chaiscript/dispatchkit/type_info.hpp @@ -20,7 +20,7 @@ namespace chaiscript template struct Bare_Type { - typedef typename std::remove_const::type>::type>::type type; + typedef typename std::remove_cv::type>::type>::type type; }; }