Closed shuli106 closed 1 year ago
在使用MessageChain::first()时,发现函数体没有被声明为const: auto firstImage = e.message.first<Image>(); 会提示如下错误 error: passing 'const MiraiCP::MessageChain' as 'this' argument discards qualifiers [-fpermissive]
MessageChain::first()
const
auto firstImage = e.message.first<Image>();
error: passing 'const MiraiCP::MessageChain' as 'this' argument discards qualifiers [-fpermissive]
请将base分支改为dev
已修改
在使用
MessageChain::first()
时,发现函数体没有被声明为const
:auto firstImage = e.message.first<Image>();
会提示如下错误error: passing 'const MiraiCP::MessageChain' as 'this' argument discards qualifiers [-fpermissive]