You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am sorry, but I don't understand how those issues related to this issue. They all talk about different behavior for different compilers, but this issue talks about different behavior on the same gcc compiler between braced and aggregate initializations.
This is the same issue as #2311. In Clang, both initializations result in the same value, whereas GCC interprets braced initialization as putting the value into a new array.
What is the issue you have?
Braced initialization of variable with
json::array()
has different result from aggregate initialization.Please describe the steps to reproduce the issue.
Can you provide a small but working code example?
What is the expected behavior?
0 size for both.
And what is the actual behavior instead?
0 size for aggregate initialization and 1 size for braced initialization.
Which compiler and operating system are you using?
Which version of the library did you use?
develop
branchThe text was updated successfully, but these errors were encountered: