mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 03:18:09 -03:00
miniscript: Ensure there is no NodeRef copy constructor or assignment operator
This commit is contained in:
parent
922241c7ee
commit
3f10ee4fc4
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue