mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 01:06:54 +08:00
Merge pull request #366 from mlang/future_type
Allow standard_library::future_type to bootstrap hpx::lcos::future
This commit is contained in:
commit
e2aec593c1
@ -735,7 +735,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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user