mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-07 01:06:54 +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(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::wait), "wait");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user