我得到的错误没有得到解决重载函数类型在C ++中 [英] I get error unresolved overloaded function type in c++

查看:131
本文介绍了我得到的错误没有得到解决重载函数类型在C ++中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么会一片code是这样的:

Why would piece of code like this:

boost::bind (SomeFunc<float>, function arguments go here);

产生这个错误:

no matching function for call to bind(<unresolved overloaded function type>

感谢

推荐答案

这可能是因为你的函数 SomeFunc&LT;浮动&GT; 过载,在这种情况下的boost ::绑定不能处理这个。你必须实现一个手动解决方案,请参见这里更多详细信息:

It could be that your function SomeFunc<float> is overloaded, in which case boost::bind cannot deal with this. You have to implement a manual solution, see here for more details:

这篇关于我得到的错误没有得到解决重载函数类型在C ++中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆