Windowsでも修正

守矢諏訪子 <suwako@076.moe>、2026-06-30 03:17
コミット 32ee5052866c786e7024c8765b4a9e4798848a04 ・親 6deba52 ・ファイルを見る

1個のファイル、+8 -2

@@ -69,6 +69,12 @@
6969 public:
7070 Object() = default;
7171
72+ Object(const Object &) = delete;
73+ Object &operator=(const Object &) = delete;
74+
75+ Object(Object &&) noexcept = default;
76+ Object &operator=(Object &&) noexcept = default;
77+
7278 Value &operator[](std::string_view key);
7379 const Value &operator[](std::string_view key) const;
7480
@@ -138,8 +144,8 @@
138144 Value(u32 n) : m_Value(static_cast<f64>(n)) {}
139145 Value(string s) : m_Value(std::move(s)) {}
140146 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)) {}
143149
144150 public:
145151 bool is_null() const { return std::holds_alternative<std::monostate>(m_Value); }