swap boost::reference_wrapper for std::reference_wrapper
This commit is contained in:
@@ -556,7 +556,7 @@ namespace chaiscript
|
||||
}
|
||||
|
||||
return Boxed_Value(Proxy_Function(new dispatch::Dynamic_Proxy_Function
|
||||
(std::bind(chaiscript::eval::detail::eval_function, boost::ref(t_ss), this->children.back(), t_param_names, std::placeholders::_1),
|
||||
(std::bind(chaiscript::eval::detail::eval_function, std::ref(t_ss), this->children.back(), t_param_names, std::placeholders::_1),
|
||||
static_cast<int>(numparams), this->children.back())));
|
||||
}
|
||||
|
||||
@@ -624,7 +624,7 @@ namespace chaiscript
|
||||
if (guardnode) {
|
||||
guard = std::shared_ptr<dispatch::Dynamic_Proxy_Function>
|
||||
(new dispatch::Dynamic_Proxy_Function(std::bind(chaiscript::eval::detail::eval_function,
|
||||
boost::ref(t_ss), guardnode,
|
||||
std::ref(t_ss), guardnode,
|
||||
t_param_names, std::placeholders::_1), static_cast<int>(numparams), guardnode));
|
||||
}
|
||||
|
||||
@@ -633,7 +633,7 @@ namespace chaiscript
|
||||
const std::string & l_annotation = this->annotation?this->annotation->text:"";
|
||||
t_ss.add(Proxy_Function
|
||||
(new dispatch::Dynamic_Proxy_Function(std::bind(chaiscript::eval::detail::eval_function,
|
||||
boost::ref(t_ss), this->children.back(),
|
||||
std::ref(t_ss), this->children.back(),
|
||||
t_param_names, std::placeholders::_1), static_cast<int>(numparams), this->children.back(),
|
||||
l_annotation, guard)), l_function_name);
|
||||
}
|
||||
@@ -942,7 +942,7 @@ namespace chaiscript
|
||||
throw;
|
||||
}
|
||||
catch (const std::exception &e) {
|
||||
Boxed_Value except = Boxed_Value(boost::ref(e));
|
||||
Boxed_Value except = Boxed_Value(std::ref(e));
|
||||
|
||||
size_t end_point = this->children.size();
|
||||
if (this->children.back()->identifier == AST_Node_Type::Finally) {
|
||||
@@ -1099,7 +1099,7 @@ namespace chaiscript
|
||||
if (guardnode) {
|
||||
guard = std::shared_ptr<dispatch::Dynamic_Proxy_Function>
|
||||
(new dispatch::Dynamic_Proxy_Function(std::bind(chaiscript::eval::detail::eval_function,
|
||||
boost::ref(t_ss), guardnode,
|
||||
std::ref(t_ss), guardnode,
|
||||
t_param_names, std::placeholders::_1), static_cast<int>(numparams), guardnode));
|
||||
}
|
||||
|
||||
@@ -1111,7 +1111,7 @@ namespace chaiscript
|
||||
t_ss.add(Proxy_Function
|
||||
(new dispatch::detail::Dynamic_Object_Constructor(class_name, Proxy_Function
|
||||
(new dispatch::Dynamic_Proxy_Function(std::bind(chaiscript::eval::detail::eval_function,
|
||||
boost::ref(t_ss), this->children.back(),
|
||||
std::ref(t_ss), this->children.back(),
|
||||
t_param_names, std::placeholders::_1), static_cast<int>(numparams), this->children.back(),
|
||||
l_annotation, guard)))), function_name);
|
||||
|
||||
@@ -1126,7 +1126,7 @@ namespace chaiscript
|
||||
t_ss.add(Proxy_Function
|
||||
(new dispatch::detail::Dynamic_Object_Function(class_name, Proxy_Function
|
||||
(new dispatch::Dynamic_Proxy_Function(std::bind(chaiscript::eval::detail::eval_function,
|
||||
boost::ref(t_ss), this->children.back(),
|
||||
std::ref(t_ss), this->children.back(),
|
||||
t_param_names, std::placeholders::_1), static_cast<int>(numparams), this->children.back(),
|
||||
l_annotation, guard)), ti)), function_name);
|
||||
|
||||
|
Reference in New Issue
Block a user