Skip to content

Commit

Permalink
I'm so frustrated. I can't reproduce the issue in workflows using t…
Browse files Browse the repository at this point in the history
…he same `mingw` on my `windows`.
  • Loading branch information
levalup committed Jun 28, 2024
1 parent d14de05 commit f9d25a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/uvcxx/utils/callback.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ namespace uvcxx {

template<typename E, typename FUNC, typename std::enable_if<
std::is_base_of<std::exception, E>::value &&
!std::is_constructible<on_except_t, FUNC>::value &&
!std::is_same<void, decltype(std::declval<FUNC>()(std::declval<const E &>()))>::value,
int>::type = 0>
UVCXX_DEPRECATED("specific exception handling functions should return void")
Expand All @@ -327,6 +328,7 @@ namespace uvcxx {
}

template<typename FUNC, typename std::enable_if<
!std::is_constructible<on_except_t, FUNC>::value &&
!std::is_same<void, decltype(std::declval<FUNC>()(std::declval<const std::exception &>()))>::value,
int>::type = 0>
UVCXX_DEPRECATED("specific exception handling functions should return void")
Expand Down
2 changes: 2 additions & 0 deletions include/uvcxx/utils/promise.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ namespace uvcxx {

template<typename E, typename FUNC, typename std::enable_if<
std::is_base_of<std::exception, E>::value &&
!std::is_constructible<on_except_t, FUNC>::value &&
!std::is_same<void, decltype(std::declval<FUNC>()(std::declval<const E &>()))>::value,
int>::type = 0>
UVCXX_DEPRECATED("specific exception handling functions should return void")
Expand All @@ -327,6 +328,7 @@ namespace uvcxx {
}

template<typename FUNC, typename std::enable_if<
!std::is_constructible<on_except_t, FUNC>::value &&
!std::is_same<void, decltype(std::declval<FUNC>()(std::declval<const std::exception &>()))>::value,
int>::type = 0>
UVCXX_DEPRECATED("specific exception handling functions should return void")
Expand Down

0 comments on commit f9d25a0

Please sign in to comment.