template<typename T>
class copp::Expected< T >
Small C++17 expected-like result used by no-throw overloads.
The throwing API remains the primary surface. No-throw overloads take copp::no_throw as their final argument and return Expected<T>. They are implemented by catching exceptions from the normal API, so this is not a -fno-exceptions build mode.
if (!result) {
std::cerr << result.error().message << "\n";
return;
}
auto path = std::move(result).value();
static Path from_waypoints(MatrixView waypoints, SplineConfig config={})
Build a spline path from waypoint positions.
constexpr NoThrowTag no_throw
- Template Parameters
-
Definition at line 526 of file core.hpp.