Why not update the nlohmann::json library?
The latest release version is 3.11.2.
Do you need an upgraded version to support the new feature?
release version 3.11.0: String view support for all functions working on object keys (e.g., at or operator[]), avoiding unnecessary allocations.
新的nlohmann::json库的json类型定义与hv当前使用的有冲突,如果程序有一部分引入了json库,另一部分使用hv时会出现链接错误的问题
具体来说是新版的json类型模板参数最后多了一个class CustomBaseClass = void,导致符号不一致
新的nlohmann::json库的json类型定义与hv当前使用的有冲突,如果程序有一部分引入了json库,另一部分使用hv时会出现链接错误的问题 具体来说是新版的json类型模板参数最后多了一个
class CustomBaseClass = void,导致符号不一致
我直接将cpputil/json.hpp替换成最新版本的json.hpp, 目前使用没有问题.
遇到同样的链接错误,排查老半天才发现问题出在hv的json版本与自己的json是同一个开源库导致ifndef宏约束形成声明与实现包含的json版本不同产生链接错误。。最后把自己fork的hv更新json解决了顺便提了pr