Get MSVC2015 quieted down on warnings
re @arBmind
This commit is contained in:
@@ -166,11 +166,11 @@ namespace chaiscript
|
|||||||
template<>
|
template<>
|
||||||
struct Cast_Helper_Inner<Boxed_Value>
|
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 *)
|
static Result_Type cast(const Boxed_Value &ob, const Type_Conversions *)
|
||||||
{
|
{
|
||||||
return ob;
|
return std::cref(ob);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -178,11 +178,11 @@ namespace chaiscript
|
|||||||
template<>
|
template<>
|
||||||
struct Cast_Helper_Inner<Boxed_Value &>
|
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 *)
|
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));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
#include <chaiscript/dispatchkit/bootstrap_stl.hpp>
|
#include <chaiscript/dispatchkit/bootstrap_stl.hpp>
|
||||||
#include <chaiscript/dispatchkit/function_call.hpp>
|
#include <chaiscript/dispatchkit/function_call.hpp>
|
||||||
|
|
||||||
int main( int argc , char * argv[] )
|
int main( int /*argc*/ , char * /*argv*/[] )
|
||||||
{
|
{
|
||||||
chaiscript::ChaiScript ch( chaiscript::Std_Lib::library( ) );
|
chaiscript::ChaiScript ch( chaiscript::Std_Lib::library( ) );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user