博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

error C3848

Posted on 2011-04-01 15:29  李大嘴  阅读(1073)  评论(0编辑  收藏  举报
error C3848: expression having type would lose some const-volatile qualifiers in order to call "bool operator()(const Point3 &lhs, const Point3 &rhs)"

解决:

bool operator()(const Point3 &lhs, const Point3 &rhs)

改为

bool operator()(const Point3 &lhs, const Point3 &rhs) const