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;
55
55
56
56
struct Key {
57
57
enum class Kind : uint8_t { None, Int, Str } kind_;
58
+
58
59
private:
59
60
std::variant<std::monostate, KeyInt, KeyStr> repr_;
60
61
@@ -138,7 +139,8 @@ struct ContainerHandle {
138
139
139
140
/* implicit*/ ContainerHandle(container_type* c) : handle(c) {}
140
141
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)) {}
142
144
143
145
void set_leaf (leaf_type* leaf) {
144
146
pytree_assert (handle->kind == Kind::Leaf);
@@ -550,7 +552,7 @@ TreeSpec<Aux> from_str_internal(
550
552
read_idx++;
551
553
}
552
554
c->leaves_num = leaves_offset;
553
- return c ;
555
+ return TreeSpec<Aux>( std::move (c)) ;
554
556
}
555
557
556
558
case Config::kLeaf :
You can’t perform that action at this time.
0 commit comments