@@ -17,5 +17,13 struct _has_##method<T, void_t<std::is_member_function_pointer<decltype(&T::meth | |||||
17 | template< class T>\ |
|
17 | template< class T>\ | |
18 | static inline constexpr bool has_##method = _has_##method<T>::value; |
|
18 | static inline constexpr bool has_##method = _has_##method<T>::value; | |
19 |
|
19 | |||
|
20 | //taken from here https://www.fluentcpp.com/2017/10/27/function-aliases-cpp/ | |||
|
21 | #define ALIAS_TEMPLATE_FUNCTION(highLevelF, lowLevelF) \ | |||
|
22 | template <typename... Args> \ | |||
|
23 | inline auto highLevelF(Args &&... args)->decltype(lowLevelF(std::forward<Args>(args)...)) \ | |||
|
24 | { \ | |||
|
25 | return lowLevelF(std::forward<Args>(args)...); \ | |||
|
26 | } | |||
|
27 | ||||
20 |
|
28 | |||
21 | #endif // CPP_UTILS_H |
|
29 | #endif // CPP_UTILS_H |
General Comments 0
You need to be logged in to leave comments.
Login now