使用cmake安装coinapi时出现问题 >我尝试安装 CONAPI API /Cord>的C++ REST库< /P> https://github.com/coinapi/coinapi-sdk https://github.com/coinapi/coinapi-sdk/tree/master/oeml-sdk/cpp-restsdk

使用cmake安装coinapi时出现问题 >我尝试安装 CONAPI API /Cord>的C++ REST库< /P> https://github.com/coinapi/coinapi-sdk https://github.com/coinapi/coinapi-sdk/tree/master/oeml-sdk/cpp-restsdk,c++,C++,然而,当我构建由cmake创建的项目时,有11个错误。11个错误中有10个是在const std::shared\u ptr&上调用toJson或fromJson时发生的 例如: template<typename T> web::json::value ModelBase::toJson( const std::shared_ptr<T>& val ){ web::json::value retVal; if(val != nullptr){

然而,当我构建由
cmake
创建的项目时,有11个错误。11个错误中有10个是在
const std::shared\u ptr&
上调用
toJson
fromJson
时发生的

例如:

template<typename T>
web::json::value ModelBase::toJson( const std::shared_ptr<T>& val ){
    web::json::value retVal;
    if(val != nullptr){
        retVal = val->toJson();
    }
    return retVal;
}
模板
web::json::value ModelBase::toJson(const std::shared_ptr&val){
web::json::value retVal;
如果(val!=nullptr){
retVal=val->toJson();
}
返回返回;
}
最后一个问题是代码试图将
std::shared_ptr
变量放入
std::shared_ptr
函数中

有没有办法解决这个问题,这样我就可以继续使用图书馆了