File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ cppjson::JsonObject::JsonObject(const cppjson::JsonObject& other)
18
18
cppjson::JsonObject::JsonObject (JsonObject&& other)
19
19
{
20
20
this ->_dataType = std::exchange (other._dataType , cppjson::JsonType::Null);
21
- this ->_dataStorage = std::exchange (other._dataStorage , :: operator new (DataStorageSize));
21
+ this ->_dataStorage = std::exchange (other._dataStorage , static_cast <std::byte*>(:: operator new (DataStorageSize) ));
22
22
}
23
23
cppjson::JsonObject& cppjson::JsonObject::operator =(const cppjson::JsonObject& other)
24
24
{
@@ -35,7 +35,7 @@ cppjson::JsonObject& cppjson::JsonObject::operator=(cppjson::JsonObject&& other)
35
35
if (&other != this )
36
36
{
37
37
this ->_dataType = std::exchange (other._dataType , cppjson::JsonType::Null);
38
- this ->_dataStorage = std::exchange (other._dataStorage , :: operator new (DataStorageSize));
38
+ this ->_dataStorage = std::exchange (other._dataStorage , static_cast <std::byte*>(:: operator new (DataStorageSize) ));
39
39
}
40
40
return *this ;
41
41
}
You can’t perform that action at this time.
0 commit comments