mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 01:06:54 +08:00
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:
parent
ee0d6e676c
commit
ee3f828b8c
@ -733,7 +733,7 @@ namespace chaiscript
|
||||
m.add(user_type<FutureType>(), 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<typename FutureType>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user