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

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

问题描述

为什么会有这样的代码片段:

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>

THanks

推荐答案

可能是你的函数 SomeFunc< float> 是重载的,在这种情况下, boost :: bind 无法处理这一点,你必须实现一个手动解决方案,参见此处了解详情:

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天全站免登陆