Allow bootstrapping hpx::lcos::future

Which has an overloaded get(error_code &).  Use a lambda in
standard_library::future_type to disambiguate.
This commit is contained in:
Mario Lang 2017-09-15 10:12:47 +02:00
parent ee0d6e676c
commit ee3f828b8c

View File

@ -733,7 +733,7 @@ namespace chaiscript
m.add(user_type<FutureType>(), type); m.add(user_type<FutureType>(), type);
m.add(fun([](const FutureType &t) { return t.valid(); }), "valid"); 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"); m.add(fun(&FutureType::wait), "wait");
} }
template<typename FutureType> template<typename FutureType>