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

This commit is contained in:
Ava Chow committed 2025-01-21 13:17:20 -05:00
1 parent 6d11c9c60b
commit 9ccb46f91a
1 file changed
+4
+4
View File
@@ -1682,6 +1682,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 {