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

vs2003编译不过 #106

Closed
sisong opened this issue Dec 21, 2018 · 2 comments
Closed

vs2003编译不过 #106

sisong opened this issue Dec 21, 2018 · 2 comments
Labels
enhancement New feature or request P3

Comments

@sisong
Copy link
Owner

sisong commented Dec 21, 2018

Uploading image.png…
qq 20170825194240

编译不过

增加:
template
inline bool operator()(const TIndex& x, const TIndex& y)const {
TDigest di(y);
return (x + i<n) ? (blocks[x + i]<di.value) : true;
}
这种函数。。目前编译过了

Originally posted by @codeman001 in #36 (comment)

@sisong
Copy link
Owner Author

sisong commented Dec 21, 2018

谢谢你的问题, 你的实现有误;

我试过vc、xcode、gcc、clang编译过;
我猜测是: 表达式原地构造的对象不能当作 const T& 参数被传递;但看错误说明又不像:(
你可以试试 把它先定义成一个变量
from #36 (comment)

@sisong
Copy link
Owner Author

sisong commented Dec 21, 2018

我用的vs2010测试; 看来vs2013库的实现有些不同,已经调整代码;
from #36 (comment)

@sisong sisong closed this as completed Dec 21, 2018
@sisong sisong added enhancement New feature or request P3 labels Dec 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P3
Projects
None yet
Development

No branches or pull requests

1 participant