diff options
Diffstat (limited to 'wx+/async_task.h')
-rwxr-xr-x | wx+/async_task.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wx+/async_task.h b/wx+/async_task.h index 1d64e262..8c2602ca 100755 --- a/wx+/async_task.h +++ b/wx+/async_task.h @@ -49,12 +49,12 @@ public: bool resultReady () const override { return isReady(asyncResult_); } void evaluateResult() override { - evalResult(IsSameType<ResultType, void>()); + evalResult(std::is_same<ResultType, void>()); } private: - void evalResult(FalseType /*void result type*/) { evalOnGui_(asyncResult_.get()); } - void evalResult(TrueType /*void result type*/) { asyncResult_.get(); evalOnGui_(); } + void evalResult(std::false_type /*void result type*/) { evalOnGui_(asyncResult_.get()); } + void evalResult(std::true_type /*void result type*/) { asyncResult_.get(); evalOnGui_(); } std::future<ResultType> asyncResult_; Fun evalOnGui_; //keep "evalOnGui" strictly separated from async thread: in particular do not copy in thread! |