Flags:: DisallowUnknownKey sets Flags::Optional and Flags:: IgnoreRead also
syoyo opened this issue · comments
https://github.com/netheril96/StaticJSON/blob/master/include/staticjson/basic.hpp#L146
The value of Flags:: DisallowUnknownKey
is set to 0x16
(22
in decimal). 0x16
also set a bits for Flags::Optional
and Flags:: IgnoreRead
. This may trigger some logical error.
I think the value of flags are defined in exclusive manner, so guess 0x10
is a correct value for Flags:: DisallowUnknownKey
.
Yes, you are correct. Can you file a pull request?
…On Sun, Sep 1, 2019 at 4:12 PM Syoyo Fujita ***@***.***> wrote:
https://github.com/netheril96/StaticJSON/blob/master/include/staticjson/basic.hpp#L146
The value of Flags:: DisallowUnknownKey is set to 0x16(22 in decimal).
0x16 also set a bits for Flags::Optional and Flags:: IgnoreRead. This may
trigger some logical error.
I think the value of flags are defined in exclusive manner, so guess 0x10
is a correct value for Flags:: DisallowUnknownKey.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#44?email_source=notifications&email_token=AAGMJZ33BFAOODLVCL2P5RDQHN2QPA5CNFSM4ISWANP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HIUCY2Q>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGMJZZIZFBNQ7QYFNOJN6DQHN2QPANCNFSM4ISWANPQ>
.
Thank you. I have filed a PR > #46