summaryrefslogtreecommitdiff
path: root/wx+/async_task.h
diff options
context:
space:
mode:
Diffstat (limited to 'wx+/async_task.h')
-rwxr-xr-xwx+/async_task.h6
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!
bgstack15