netheril96 / StaticJSON

Fast, direct and static typed parsing of JSON with C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

Thank you. I have filed a PR > #46