Get MSVC2015 quieted down on warnings

re @arBmind
This commit is contained in:
Jason Turner
2015-08-02 16:52:43 -06:00
parent 8931346230
commit 38ba00e55c
2 changed files with 5 additions and 5 deletions

View File

@@ -166,11 +166,11 @@ namespace chaiscript
template<>
struct Cast_Helper_Inner<Boxed_Value>
{
typedef const Boxed_Value & Result_Type;
typedef std::reference_wrapper<const Boxed_Value> Result_Type;
static Result_Type cast(const Boxed_Value &ob, const Type_Conversions *)
{
return ob;
return std::cref(ob);
}
};
@@ -178,11 +178,11 @@ namespace chaiscript
template<>
struct Cast_Helper_Inner<Boxed_Value &>
{
typedef Boxed_Value& Result_Type;
typedef std::reference_wrapper<Boxed_Value> Result_Type;
static Result_Type cast(const Boxed_Value &ob, const Type_Conversions *)
{
return const_cast<Boxed_Value &>(ob);
return std::ref(const_cast<Boxed_Value &>(ob));
}
};