libhv icon indicating copy to clipboard operation
libhv copied to clipboard

Why not update the nlohmann::json library?

Open SuperBigYB opened this issue 2 years ago • 5 comments

The latest release version is 3.11.2.

SuperBigYB avatar Oct 30 '23 01:10 SuperBigYB

Do you need an upgraded version to support the new feature?

ithewei avatar Oct 31 '23 11:10 ithewei

release version 3.11.0: String view support for all functions working on object keys (e.g., at or operator[]), avoiding unnecessary allocations.

SuperBigYB avatar Nov 01 '23 01:11 SuperBigYB

新的nlohmann::json库的json类型定义与hv当前使用的有冲突,如果程序有一部分引入了json库,另一部分使用hv时会出现链接错误的问题 具体来说是新版的json类型模板参数最后多了一个class CustomBaseClass = void,导致符号不一致

nanjo712 avatar May 10 '24 14:05 nanjo712

新的nlohmann::json库的json类型定义与hv当前使用的有冲突,如果程序有一部分引入了json库,另一部分使用hv时会出现链接错误的问题 具体来说是新版的json类型模板参数最后多了一个class CustomBaseClass = void,导致符号不一致

我直接将cpputil/json.hpp替换成最新版本的json.hpp, 目前使用没有问题.

SuperBigYB avatar May 13 '24 08:05 SuperBigYB

遇到同样的链接错误,排查老半天才发现问题出在hv的json版本与自己的json是同一个开源库导致ifndef宏约束形成声明与实现包含的json版本不同产生链接错误。。最后把自己fork的hv更新json解决了顺便提了pr

House-Men avatar May 17 '24 14:05 House-Men