diff --git a/include/dap/future.h b/include/dap/future.h index 4b2d5f2..af103c3 100644 --- a/include/dap/future.h +++ b/include/dap/future.h @@ -93,7 +93,7 @@ future::future(const std::shared_ptr& s) : state(s) {} template bool future::valid() const { - return state; + return static_cast(state); } template