File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -189,11 +189,11 @@ inline consteval Type operator""_mst(const char* c, size_t l)
189189using Opcode = std::pair<opcodetype, std::vector<unsigned char >>;
190190
191191template <typename Key> struct Node ;
192- template <typename Key> using NodeRef = std::shared_ptr <const Node<Key>>;
192+ template <typename Key> using NodeRef = std::unique_ptr <const Node<Key>>;
193193
194- // ! Construct a miniscript node as a shared_ptr .
194+ // ! Construct a miniscript node as a unique_ptr .
195195template <typename Key, typename ... Args>
196- NodeRef<Key> MakeNodeRef (Args&&... args) { return std::make_shared <const Node<Key>>(std::forward<Args>(args)...); }
196+ NodeRef<Key> MakeNodeRef (Args&&... args) { return std::make_unique <const Node<Key>>(std::forward<Args>(args)...); }
197197
198198// ! The different node types in miniscript.
199199enum class Fragment {
You can’t perform that action at this time.
0 commit comments