Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::timeline::AutomationTargetCases< Fs > Struct Template Reference

Overload set for visiting an AutomationTarget with no generic fallback. More...

#include <automation_lane.hpp>

Detailed Description

template<class... Fs>
struct pulp::timeline::AutomationTargetCases< Fs >

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()); 

The documentation for this struct was generated from the following file: