Skip to content

Commit

Permalink
Last bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davschneller committed Sep 16, 2024
1 parent ef42a16 commit 6b262a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions async/as/Base.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,37 +305,37 @@ class Base : public async::ExecInfo {

template <typename E, typename P>
auto callInitInternal(const P& parameters) ->
typename std::enable_if_t<execInitHasExec<E, P>::value> {
typename std::enable_if_t<execInitHasExec<E, P>::Value> {
const ExecInfo& info = *this;
m_executor->execInit(info, parameters);
}

template <typename E, typename P>
auto callInitInternal(const P& parameters) ->
typename std::enable_if_t<!execInitHasExec<E, P>::value> {
typename std::enable_if_t<!execInitHasExec<E, P>::Value> {
m_executor->execInit(parameters);
}

template <typename E, typename P>
auto callInternal(const P& parameters) -> typename std::enable_if_t<execHasExec<E, P>::value> {
auto callInternal(const P& parameters) -> typename std::enable_if_t<execHasExec<E, P>::Value> {
const ExecInfo& info = *this;
m_executor->exec(info, parameters);
}

template <typename E, typename P>
auto callInternal(const P& parameters) -> typename std::enable_if_t<!execHasExec<E, P>::value> {
auto callInternal(const P& parameters) -> typename std::enable_if_t<!execHasExec<E, P>::Value> {
m_executor->exec(parameters);
}

template <typename E, typename P>
auto callWaitInternal() -> typename std::enable_if_t<execWaitHasExec<E, P>::value> {
auto callWaitInternal() -> typename std::enable_if_t<execWaitHasExec<E, P>::Value> {
const ExecInfo& info = *this;
m_executor->execWait(info);
}

template <typename E, typename P>
auto callWaitInternal() ->
typename std::enable_if_t<!execWaitHasNoExec<E, P>::value && !execWaitHasExec<E, P>::value> {}
typename std::enable_if_t<!execWaitHasNoExec<E, P>::Value && !execWaitHasExec<E, P>::Value> {}
};

} // namespace async::as
Expand Down
2 changes: 1 addition & 1 deletion async/as/Magic.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace async::as {
static auto chk(type_check<Sign, &Dummy::func>*) -> Yes&; \
template <typename> \
static auto chk(...) -> No&; \
static bool const value = sizeof(chk<T>(0)) == sizeof(Yes); \
static bool const Value = sizeof(chk<T>(nullptr)) == sizeof(Yes); \
}

} // namespace async::as
Expand Down

0 comments on commit 6b262a3

Please sign in to comment.