mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
devel/clipp: Fix build of dependent ports with c++17 and above
- Bump PORTREVISION for package change
This commit is contained in:
parent
0643004835
commit
e0f09a5cba
2 changed files with 27 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
PORTNAME= clipp
|
PORTNAME= clipp
|
||||||
PORTVERSION= 1.2.3
|
PORTVERSION= 1.2.3
|
||||||
DISTVERSIONPREFIX= v
|
DISTVERSIONPREFIX= v
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= devel
|
CATEGORIES= devel
|
||||||
|
|
||||||
MAINTAINER= sunpoet@FreeBSD.org
|
MAINTAINER= sunpoet@FreeBSD.org
|
||||||
|
|
26
devel/clipp/files/patch-include-clipp.h
Normal file
26
devel/clipp/files/patch-include-clipp.h
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
--- include/clipp.h.orig 2023-09-19 20:16:06 UTC
|
||||||
|
+++ include/clipp.h
|
||||||
|
@@ -160,7 +160,11 @@ constexpr auto
|
||||||
|
check_is_callable(int) -> decltype(
|
||||||
|
std::declval<Fn>()(std::declval<Args>()...),
|
||||||
|
std::integral_constant<bool,
|
||||||
|
+#if __cplusplus >= 201703L
|
||||||
|
+ std::is_same<Ret,typename std::invoke_result_t<Fn, Args...>>::value>{} );
|
||||||
|
+#else
|
||||||
|
std::is_same<Ret,typename std::result_of<Fn(Args...)>::type>::value>{} );
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
template<class,class,class...>
|
||||||
|
constexpr auto
|
||||||
|
@@ -171,7 +175,11 @@ constexpr auto
|
||||||
|
check_is_callable_without_arg(int) -> decltype(
|
||||||
|
std::declval<Fn>()(),
|
||||||
|
std::integral_constant<bool,
|
||||||
|
+#if __cplusplus >= 201703L
|
||||||
|
+ std::is_same<Ret,typename std::invoke_result_t<Fn>>::value>{} );
|
||||||
|
+#else
|
||||||
|
std::is_same<Ret,typename std::result_of<Fn()>::type>::value>{} );
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
template<class,class>
|
||||||
|
constexpr auto
|
Loading…
Add table
Reference in a new issue