Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yzm0080 opened this issue Nov 24, 2021 · 1 comment

Comments

@yzm0080
Copy link

yzm0080 commented Nov 24, 2021

源码编译安装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  
@ruanshudong
Copy link
Collaborator

bug fix, 需要先升级TarsCpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants