diff --git a/include/chaiscript/dispatchkit/bootstrap_stl.hpp b/include/chaiscript/dispatchkit/bootstrap_stl.hpp index 7785f9fb..bc3c0869 100644 --- a/include/chaiscript/dispatchkit/bootstrap_stl.hpp +++ b/include/chaiscript/dispatchkit/bootstrap_stl.hpp @@ -735,7 +735,7 @@ namespace chaiscript m.add(user_type(), type); m.add(fun([](const FutureType &t) { return t.valid(); }), "valid"); - m.add(fun(&FutureType::get), "get"); + m.add(fun([](FutureType &t) { return t.get(); }), "get"); m.add(fun(&FutureType::wait), "wait"); } template