Work around MSVC 2014 issue with future

have to wrap std::future::valid in a lambda due to noexcept?!
This commit is contained in:
Jason Turner
2015-01-14 20:41:41 -07:00
parent 1552d36d7a
commit 5b6e6042f3

View File

@@ -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");