File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change
1
+ CXX_STANDARD "17"
1
2
STARTER_REV "0.13.2"
2
3
SYNCER_REV "0.5.3"
3
4
GSEARCH_ID_HTTP "010085642145132923492:fixi4yzeiz8"
Original file line number Diff line number Diff line change 23
23
#ifndef ARANGOD_FUTURES_BACKPORTS_H
24
24
#define ARANGOD_FUTURES_BACKPORTS_H 1
25
25
26
+ #if __cplusplus >= 201703L
27
+ #include < type_traits>
28
+ #include < utility>
29
+ #endif
30
+
26
31
namespace arangodb {
27
32
namespace futures {
28
33
@@ -69,13 +74,19 @@ constexpr auto invoke(M(C::*d), Args&&... args)
69
74
}
70
75
71
76
#else
72
- #include < type_traits>
73
- #include < utility>
74
77
using in_place_t = std::in_place_t ;
75
- using in_place = std::in_place;
76
- using is_invocable = std::is_invocable;
77
- using is_invocable_r = std::is_invocable_r;
78
- using invoke = std::invoke;
78
+ inline constexpr in_place_t in_place{};
79
+
80
+ template <class R , class FN , class ... ArgTypes>
81
+ using is_invocable_r = std::is_invocable_r<R, FN, ArgTypes...>;
82
+
83
+ template <class FN , class ... ArgTypes>
84
+ using is_invocable = std::is_invocable<FN, ArgTypes...>;
85
+
86
+ template < class F , class ... Args>
87
+ auto invoke (F&& f, Args&&... args) noexcept -> decltype(std::invoke(f, args...)) {
88
+ return std::invoke (f, args...);
89
+ }
79
90
#endif
80
91
81
92
}}
You can’t perform that action at this time.
0 commit comments