Initializing json
by direct initialization and copy initialization invokes different constructors
#4174
Closed
2 tasks done
Labels
Description
direct initialization demo
copy initialization demo
I think this behaviour is easy to make mistakes, so probably not an intentional design.
Reproduction steps
refer to description
Expected vs. actual results
The direct initialization code should behave as the same as the copy initialization one, which enables converting
json
back tostd::map
.Minimal code example
No response
Error messages
No response
Compiler and operating system
x86-64 clang (trunk), x86-64 gcc (trunk)
Library version
35c0b3e
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: