You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling with -fno-exceptions and explicitly specifying TF_DISABLE_EXCEPTION_HANDLING before including the header even the simple example does not compile.
TF_DISABLE_EXCEPTION_HANDLING
#include<taskflow/taskflow.hpp>intmain(int nargs, char *args[]) {
tf::Executor executor;
tf::Taskflow taskflow("simple");
auto [A, B, C, D] = taskflow.emplace([]() { std::cout << "TaskA\n"; },
[]() { std::cout << "TaskB\n"; },
[]() { std::cout << "TaskC\n"; },
[]() { std::cout << "TaskD\n"; });
A.precede(B, C); // A runs before B and C
D.succeed(B, C); // D runs after B and C
executor.run(taskflow).wait();
return0;
}
It looks like there are only two places that needs replacement (master branch)
When compiling with
-fno-exceptions
and explicitly specifyingTF_DISABLE_EXCEPTION_HANDLING
before including the header even the simple example does not compile.It looks like there are only two places that needs replacement (
master
branch)In file
taskflow/core/error.h
line 20and in
taskflow/utility/object_pool.hpp
line no 629Once they are made to respect
TF_DISABLE_EXCEPTION_HANDLING
the example compiles. Is it not possible to compile taskflow without exception safety?The text was updated successfully, but these errors were encountered: