会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
_Toya
CnBlogs
Home
New Post
Contact
Admin
Subscription
2021年10月27日
error c2678 <
场景:定义了一个结构体A,然后std::map<A, B> m; 报错:error c2678:二进制"<",没有找到接受"const A"类型的左操作数运算符(或没有可接受的转换) 原因:重载 "<",参数列表后面没有加const 解决:参数列表后面加const bool operator < (
Read More
posted @ 2021-10-27 15:36 _KikyoBK
Views(115)
Comments(0)
Diggs(0)
Edit
公告