Minor cleanups in cv qualification removal

This commit is contained in:
Jason Turner
2011-09-26 07:51:32 -06:00
parent 488f2ea393
commit b27aa50d6a
2 changed files with 2 additions and 1 deletions

View File

@@ -68,6 +68,7 @@ namespace chaiscript
return detail::Cast_Helper<Type>::cast(bv); return detail::Cast_Helper<Type>::cast(bv);
} catch (const chaiscript::detail::exception::bad_any_cast &) { } catch (const chaiscript::detail::exception::bad_any_cast &) {
#ifdef CHAISCRIPT_MSVC #ifdef CHAISCRIPT_MSVC
//Thank you MSVC, yes we know that a constant value is being used in the if //Thank you MSVC, yes we know that a constant value is being used in the if
// statment in THIS VERSION of the template instantiation // statment in THIS VERSION of the template instantiation

View File

@@ -20,7 +20,7 @@ namespace chaiscript
template<typename T> template<typename T>
struct Bare_Type struct Bare_Type
{ {
typedef typename std::remove_const<typename std::remove_pointer<typename std::remove_reference<T>::type>::type>::type type; typedef typename std::remove_cv<typename std::remove_pointer<typename std::remove_reference<T>::type>::type>::type type;
}; };
} }