Overload set for visiting an AutomationTarget with no generic fallback. More...
#include <automation_lane.hpp>
Overload set for visiting an AutomationTarget with no generic fallback.
Adding an alternative to AutomationTarget must not be a silent change. Consumers that dispatch through a generic lambda ([](const auto&), or an if constexpr chain with no else) keep compiling and then quietly ignore the new alternative, which is the worse failure: a target that exists in the document but is absent from a census, an export manifest, or a delivery path reads as "nothing was there" rather than as an error. Visiting through this type instead makes a new alternative a compile error at every call site until someone decides what it means.
std::visit(AutomationTargetCases{
[&](const DeviceParameterTarget& t) { ... },
},
lane.target());