rsl 1.1.0
ROS Support Library
|
#include <tl_expected/expected.hpp>
Go to the source code of this file.
Macros | |
#define | TRY(expected) |
Unwrap an expected into a stack variable or return the unexpected value. | |
#define TRY | ( | expected | ) |
Unwrap an expected into a stack variable or return the unexpected value.
This macro requires the use of non-standard C++. Compiler extensions must be enabled and -Wpedantic cannot be used. With GCC and Clang, you can disable -Wpedantic for an entire translation unit like this:
You can disable -Wpedantic for a specific segment of code like so:
For more information on this particular compiler extension go to https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html