Copying ctor and moving ctor null ordered_json corrupts it (mingw 8) #4164
Labels
solution: duplicate
the issue is a duplicate; refer to the linked issue instead
state: stale
the issue has not been updated in a while and will be closed automatically soon unless it is updated
Description
Creating a copy of null JSON with copy ctor or moving it with move ctor corrupts it.
Type turns into array and that array contains one null element.
Null JSON is properly copied when using assignment operator.
I use the library from "include.zip".
Reproduction steps
See example below.
Expected vs. actual results
Copied null JSON shall still be null JSON and does not turn into something different.
Minimal code example
Error messages
Compiler and operating system
MinGW 8.1, Windows 10
Library version
3.11.2
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: