Windowsでも修正
守矢諏訪子 <suwako@076.moe>、2026-06-30 03:17
コミット 32ee5052866c786e7024c8765b4a9e4798848a04
・親 6deba52
・ファイルを見る
1個のファイル、+8 -2
| @@ -69,6 +69,12 @@ | ||
| 69 | 69 | public: |
| 70 | 70 | Object() = default; |
| 71 | 71 | |
| 72 | + Object(const Object &) = delete; | |
| 73 | + Object &operator=(const Object &) = delete; | |
| 74 | + | |
| 75 | + Object(Object &&) noexcept = default; | |
| 76 | + Object &operator=(Object &&) noexcept = default; | |
| 77 | + | |
| 72 | 78 | Value &operator[](std::string_view key); |
| 73 | 79 | const Value &operator[](std::string_view key) const; |
| 74 | 80 | |
| @@ -138,8 +144,8 @@ | ||
| 138 | 144 | Value(u32 n) : m_Value(static_cast<f64>(n)) {} |
| 139 | 145 | Value(string s) : m_Value(std::move(s)) {} |
| 140 | 146 | Value(cstr s) : m_Value(string(s)) {} |
| 141 | - Value(Array arr) : m_Value(std::move(arr)) {} | |
| 142 | - Value(Object obj) : m_Value(std::move(obj)) {} | |
| 147 | + Value(Array &&arr) : m_Value(std::move(arr)) {} | |
| 148 | + Value(Object &&obj) : m_Value(std::move(obj)) {} | |
| 143 | 149 | |
| 144 | 150 | public: |
| 145 | 151 | bool is_null() const { return std::holds_alternative<std::monostate>(m_Value); } |