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)
189
189
using Opcode = std::pair<opcodetype, std::vector<unsigned char >>;
190
190
191
191
template <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>>;
193
193
194
- // ! Construct a miniscript node as a shared_ptr .
194
+ // ! Construct a miniscript node as a unique_ptr .
195
195
template <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)...); }
197
197
198
198
// ! The different node types in miniscript.
199
199
enum class Fragment {
You can’t perform that action at this time.
0 commit comments