Oooh, neat!  Which compiler is figuring that out now?  It is obviously a 
warning-as-error, so it is suppressed easily enough on the command line 
(-Wno-error=type-limits).

That is a part of RapidJSON, so I don't know if it is something that can be 
fixed here.  As far as what THEY can do, I'm not sure what there is, they use 
that test to cover multi-byte encodings (where the source-character type isn't 
a 1 byte type), and it gets caught in cases where their source encoding 
character is a 'char'.  Either way, I'd suspect it needs to be fixed in 
rapidJSON first.

-- 
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/USCiLab/cereal/issues/664#issuecomment-741867215

Reply via email to