Skip to content

make失败 no type named ‘type’ in ‘struct std::enable_if<false, void***>’ #71

@yzm0080

Description

@yzm0080

源码编译安装TarsFramework最新代码成功,TasrWeb可成功访问,TarsWeb上显示的版本如下:
web:2.4.20
framework:3.0.2
下载DCache源码编译,make时出错,错误信息如下:

/usr/local/tars/cpp/include/tup/TarsJson.h:713:28: 附注:  template argument deduction/substitution failed:  
/usr/local/tars/cpp/include/tup/TarsJson.h: In substitution of ‘template<class T> static tars::JsonValueObjPtr  tars::JsonOutput::writeJson(const T&, typename std::enable_if<std::is_convertible<T*, tars::TarsStructBase*>::value, void***>::type) [with T = std::map<DCache::StatPropMsgHead, DCache::StatPropMsgBody>]’:  
/dCacheSrc/DCache/src/PropertyServer/Property.h:1855:88:   required from here  
/usr/local/tars/cpp/include/tup/TarsJson.h:713:28: 错误:no type named ‘type’ in ‘struct std::enable_if<false, void***>’  
make[2]: *** [src/PropertyServer/CMakeFiles/PropertyServer.dir/PropertyDbManager.cpp.o] 错误 1  
make[1]: *** [src/PropertyServer/CMakeFiles/PropertyServer.dir/all] 错误 2  
make: *** [all] 错误 2  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions