miniscript: Ensure there is no NodeRef copy constructor or assignment operator

This commit is contained in:
Ava Chow 2024-12-30 16:15:13 -05:00
parent 922241c7ee
commit 3f10ee4fc4

View file

@ -1687,6 +1687,10 @@ public:
: Node(internal::NoDupCheck{}, ctx.MsContext(), nt, std::move(sub), val) { DuplicateKeyCheck(ctx); }
template <typename Ctx> Node(const Ctx& ctx, Fragment nt, uint32_t val = 0)
: Node(internal::NoDupCheck{}, ctx.MsContext(), nt, val) { DuplicateKeyCheck(ctx); }
// Delete copy constructor and assignment operator, use Clone() instead
Node(const Node&) = delete;
Node& operator=(const Node&) = delete;
};
namespace internal {