Remove need for boost::function_types library

This commit is contained in:
Jason Turner
2011-09-12 08:18:51 -06:00
parent 194001f9a1
commit 6f282b6a56
5 changed files with 42 additions and 31 deletions

View File

@@ -12,8 +12,8 @@
#include "register_function.hpp"
#include "operators.hpp"
#include "boxed_number.hpp"
#include <boost/function_types/result_type.hpp>
#include <sstream>
#include <type_traits>
namespace chaiscript
{
@@ -346,7 +346,9 @@ namespace chaiscript
static std::vector<Boxed_Value> do_return_boxed_value_vector(FunctionType f,
const dispatch::Proxy_Function_Base *b)
{
typedef typename boost::function_types::result_type<FunctionType>::type Vector;
typedef decltype(std::mem_fn(f)) MemFunType;
typedef typename MemFunType::result_type Vector;
Vector v = (b->*f)();
std::vector<Boxed_Value> vbv;