Skip to content
Snippets Groups Projects
Commit cf9cdd88 authored by Ramin Yaghoubzadeh Torky's avatar Ramin Yaghoubzadeh Torky
Browse files

cpp ATTENTION: Changed semantics for Payload entry casts to bool

For string values, ONLY the empty string "" maps to false
(previously, "false", "False", and "0" also mapped to false)
For list and map values, zero-element ones now map to false
(previously, any list or map would map to true).

The new semantics are identical to Python behavior for your convenience,
since they were not generically prescribed by the STL anyway.
parent 37b70ca0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment