[core] Use a user provided default constructor for DelayAction (#19137)

This commit is contained in:
J. Nick Koston
2026-09-16 20:42:29 +12:00
committed by GitHub
parent 0f01fa89b8
commit 0d5683525e
+3 -1
View File
@@ -180,7 +180,9 @@ class ProjectUpdateTrigger : public Trigger<std::string>, public Component {
template<typename... Ts> class DelayAction : public Action<Ts...> {
public:
explicit DelayAction() = default;
// User provided, not "= default": `new(p) DelayAction()` would zero-fill .bss that is already zero.
// constexpr and noexcept keep the rest of the implicit constructor's contract.
constexpr explicit DelayAction() noexcept {}
TEMPLATABLE_VALUE(uint32_t, delay)