From 5b6e6042f33b8804ea00b297833b4a77d86b9407 Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Wed, 14 Jan 2015 20:41:41 -0700 Subject: [PATCH] Work around MSVC 2014 issue with future have to wrap std::future::valid in a lambda due to noexcept?! --- include/chaiscript/dispatchkit/bootstrap_stl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/chaiscript/dispatchkit/bootstrap_stl.hpp b/include/chaiscript/dispatchkit/bootstrap_stl.hpp index b3be6fc..dc27fe1 100644 --- a/include/chaiscript/dispatchkit/bootstrap_stl.hpp +++ b/include/chaiscript/dispatchkit/bootstrap_stl.hpp @@ -574,7 +574,7 @@ namespace chaiscript { m->add(user_type(), type); - m->add(fun(&FutureType::valid), "valid"); + m->add(fun([](const FutureType &t) { return t.valid(); }), "valid"); m->add(fun(&FutureType::get), "get"); m->add(fun(&FutureType::wait), "wait");