Comments (2)
CTI_DETAIL_TRAP
is platform implemented and will lead to this behaviour dependent on your platform:
/// Causes the application to exit abnormally
#if defined(_MSC_VER)
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define CTI_DETAIL_TRAP() __debugbreak()
#elif defined(__GNUC__)
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define CTI_DETAIL_TRAP() __builtin_trap()
#elif defined(__has_builtin) && __has_builtin(__builtin_trap)
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define CTI_DETAIL_TRAP() __builtin_trap()
#else
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define CTI_DETAIL_TRAP() *(volatile int*)0x11 = 0
#endif
The implementation of this macro aligns with the way how LLVM is handling traps.
The greater issue here is that the unhandled exception handler is called although you provided a handler in fail,
however I was not reproduce this since your code runs fine for me:
TEST(regression_tests, fail_handler_called) {
make_exceptional_continuable<int>(supply_test_exception()).fail([]() {
return 1;
});
}
Additionally this usage scenario has a test case already:
TYPED_TEST(single_dimension_tests, are_exceptions_partial_applyable) {
in continuable/test/unit-test/multi/test-continuable-base-errors.cpp
Maybe you left code from debugging that leads to this behaviour?
from continuable.
@Naios yeah, you are right. I neglected one line code.
auto continuable = make_exceptional_continuable<void>(supply_test_exception());
So sorry!
from continuable.
Related Issues (20)
- MSVC 2019 build error in cti::detail::transforms::wait_relaxed() HOT 3
- boost::beast::ssl_stream::async_handshake() doesn't accept cti::use_continuable HOT 4
- Homogeneous container remapping code fails for some containers HOT 2
- Confusing error regarding `result` from VC++ when making a continuable from a lambda that captures a variable called `result` HOT 1
- "There is no way to call the given object with these arguments" HOT 1
- redundant move in return statement
- How do you run final cleanup with a chain? HOT 8
- compile error with clang 14 HOT 3
- out of order destruction HOT 3
- Tagging a 4.2.1 release? HOT 2
- Unexpected (undefined?) behaviour when using `::to_future` with a canceled continuable HOT 1
- make_continuable over executor HOT 5
- critical issue with nested continuables HOT 9
- cti::transforms::wait_for doesn't compile with cmake options -DCTI_CONTINUABLE_WITH_COROUTINE=ON -DCTI_CONTINUABLE_WITH_CPP_LATEST=ON
- error: array used as initializer
- How to cancel a task based on timeout? HOT 1
- CMake install instructions are broken HOT 2
- Question: thread pool of choice HOT 3
- Continuable and executors doesn't seem to be working. HOT 1
- Asio integration - completion token HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from continuable.