DCache icon indicating copy to clipboard operation
DCache copied to clipboard

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

Open yzm0080 opened this issue 4 years ago • 1 comments

源码编译安装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  

yzm0080 avatar Nov 24 '21 04:11 yzm0080

bug fix, 需要先升级TarsCpp

ruanshudong avatar Jan 19 '22 07:01 ruanshudong