mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 16:57:04 +08:00
Work around MSVC 2014 issue with future
have to wrap std::future::valid in a lambda due to noexcept?!
This commit is contained in:
parent
1552d36d7a
commit
5b6e6042f3
@ -574,7 +574,7 @@ namespace chaiscript
|
|||||||
{
|
{
|
||||||
m->add(user_type<FutureType>(), type);
|
m->add(user_type<FutureType>(), type);
|
||||||
|
|
||||||
m->add(fun(&FutureType::valid), "valid");
|
m->add(fun<bool (const FutureType &)>([](const FutureType &t) { return t.valid(); }), "valid");
|
||||||
m->add(fun(&FutureType::get), "get");
|
m->add(fun(&FutureType::get), "get");
|
||||||
m->add(fun(&FutureType::wait), "wait");
|
m->add(fun(&FutureType::wait), "wait");
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user