Skip to content

Commit

Permalink
fix compile in c++17 onward
Browse files Browse the repository at this point in the history
Signed-off-by: Coldwings <coldwings@me.com>
  • Loading branch information
Coldwings committed Jul 20, 2023
1 parent d334372 commit 8a63814
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions common/tuple-assistance.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ constexpr inline decltype(auto) apply(F&& f, Tuple&& t) {
}

#else
template <typename F, typename Tuple>
using template std::apply<F, Tuple>;
using std::apply;
#endif

template <typename P, size_t I, typename... Ts>
Expand Down
2 changes: 1 addition & 1 deletion thread/thread11.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace photon {
template<typename Pair>
static void* __stub11(void*) {
auto p = thread_reserved_space<Pair>(CURRENT);
tuple_assistance::apply(p->first, p->second);
tuple_assistance::apply(std::move(p->first), std::move(p->second));
return nullptr;
}

Expand Down

0 comments on commit 8a63814

Please sign in to comment.