File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ using KeyInt = int32_t;
5555
5656struct Key {
5757 enum class Kind : uint8_t { None, Int, Str } kind_;
58+
5859 private:
5960 std::variant<std::monostate, KeyInt, KeyStr> repr_;
6061
@@ -138,7 +139,8 @@ struct ContainerHandle {
138139
139140 /* implicit*/ ContainerHandle(container_type* c) : handle(c) {}
140141
141- /* implicit*/ ContainerHandle(std::unique_ptr<container_type> c) : handle(std::move(c)) {}
142+ /* implicit*/ ContainerHandle(std::unique_ptr<container_type> c)
143+ : handle(std::move(c)) {}
142144
143145 void set_leaf (leaf_type* leaf) {
144146 pytree_assert (handle->kind == Kind::Leaf);
@@ -550,7 +552,7 @@ TreeSpec<Aux> from_str_internal(
550552 read_idx++;
551553 }
552554 c->leaves_num = leaves_offset;
553- return c ;
555+ return TreeSpec<Aux>( std::move (c)) ;
554556 }
555557
556558 case Config::kLeaf :
You can’t perform that action at this time.
0 commit comments