Skip to content

Commit b27f5fb

Browse files
committed
Start thinking about a fallback for no deducing this support
1 parent e1173ab commit b27f5fb

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

  • libraries/core/lib/morpheus/core/functional

libraries/core/lib/morpheus/core/functional/curry.hpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#pragma once
22

3+
#include <morpheus/core/conformance/version.hpp>
4+
5+
#if (__cpp_explicit_this_parameter >= 202110L)
6+
#include <boost/hana/functional/curry.hpp>
7+
#endif // (__cpp_explicit_this_parameter >= 202110L)
8+
39
#include <concepts>
410
#include <functional>
511
#include <utility>
@@ -28,6 +34,14 @@ constexpr auto curry(F&& f, Args&&... args) -> decltype(auto)
2834
}
2935
}
3036

37+
#else
38+
39+
template <typename F, typename... Args>
40+
constexpr auto curry(F&& f, Args&&... args) -> decltype(auto)
41+
{
42+
43+
}
44+
3145
#endif // (__cpp_explicit_this_parameter >= 202110L)
3246

3347
} // namespace morpheus::functional

0 commit comments

Comments
 (0)