The compatv parameter can not behave as expected.
Using std::to_string instead of a macro pound sign.
Signed-off-by: Xinying Song <songxinying@cloudin.cn>
(cherry picked from commit
74745ef43e585f47f528ea3ab78061dfd4707f46)
#define ENCODE_FINISH(bl) ENCODE_FINISH_NEW_COMPAT(bl, 0)
#define DECODE_ERR_OLDVERSION(func, v, compatv) \
- (std::string(func) + " no longer understand old encoding version " #v " < " #compatv)
+ (std::string(func) + " no longer understand old encoding version " #v " < " + std::to_string(compatv))
#define DECODE_ERR_PAST(func) \
(std::string(func) + " decode past end of struct encoding")