diff options
author | Daniel Wilhelm <shieldwed@outlook.com> | 2018-06-30 12:43:08 +0200 |
---|---|---|
committer | Daniel Wilhelm <shieldwed@outlook.com> | 2018-06-30 12:43:08 +0200 |
commit | a98326eb2954ac1e79f5eac28dbeab3ec15e047f (patch) | |
tree | bb16257a1894b488e365851273735ec13a9442ef /wx+/async_task.h | |
parent | 10.0 (diff) | |
download | FreeFileSync-a98326eb2954ac1e79f5eac28dbeab3ec15e047f.tar.gz FreeFileSync-a98326eb2954ac1e79f5eac28dbeab3ec15e047f.tar.bz2 FreeFileSync-a98326eb2954ac1e79f5eac28dbeab3ec15e047f.zip |
10.1
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! |