Skip to content

Commit

Permalink
Fixing build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaa committed Jan 18, 2025
1 parent c906d82 commit 27e0dac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/restc-cpp/boost_compatibility.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ catch (boost::coroutines::detail::forced_unwind const&) { \
throw; /* required for Boost Coroutine! */ \
} catch (...)
#elif BOOST_VERSION >= 106000
#include <boost/coroutine/detail/forced_unwind.hpp>
#include <boost/coroutine2/detail/forced_unwind.hpp>
#define RESTC_CPP_IN_COROUTINE_CATCH_ALL \
catch (boost::coroutines::detail::forced_unwind const&) { \
throw; /* required for Boost Coroutine! */ \
} catch (...)
#else
#define RESTC_CPP_IN_COROUTINE_CATCH_ALL \
static_assert(false, "Unsupported boost version");
catch (...)
#endif

Expand Down

0 comments on commit 27e0dac

Please sign in to comment.