在VS 2017中的bind1st [英] bind1st in VS 2017

查看:72
本文介绍了在VS 2017中的bind1st的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

Windows 7专业版SP1下的VS 2017社区15.8.9。

It is VS 2017 Community 15.8.9 under Windows 7 Pro SP1.

项目工具集是v141。对于v140(VS15)也是如此。

The project toolset is v141. The same is for v140 (VS15).

我的编译器无法识别std :: bind1st函数。帮助说这个函数在标题< functional>中。

My compiler does not recognize the std::bind1st function. The Help says that this function is in header <functional>.

但是在标题中搜索'bind1st'(和'bind2nd')也没有返回结果。只有函数'bind'存在。

But search in the header for 'bind1st' (and 'bind2nd', too) returns no result. Only function 'bind' is present.

如何纠正?

推荐答案

根据较新的文章,不推荐使用
bind1st

考虑lambda表达式或
bind

如果现代方法不起作用,请显示示例。


这篇关于在VS 2017中的bind1st的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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