使用VS 2017在xmemory line 881中出现C2440错误 [英] C2440 error in xmemory line 881 using VS 2017

查看:795
本文介绍了使用VS 2017在xmemory line 881中出现C2440错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用VS 2017编译应用程序在xmemory第881行中出现C2440错误。 

while compiling an application getting C2440 error in xmemory line 881 using VS 2017 . 

错误描述是"初始化":无法转换为std :: pair< const _Kty,_Ty> to _Objty

error description is "initializing": cannot convert from std::pair <const _Kty , _Ty> to _Objty

推荐答案

你好,

我没有VS2017,我不知道什么是xmemory的第881行(.h / .cpp?)。

I don't have VS2017 and I don't know what is line 881 of xmemory (.h/.cpp?).

尽管我不认为这是xmemory中的错误文件。该错误是源代码中某处的结果。您应该提供有关错误和源代码的更多信息。

Nevertheless I don't think it's an error in the xmemory file. The error is a result of somewhere in your source code. You should provide more information about the error and your source code.

看看这个:

https://stackoverflow.com/questions/33997710/can-not-convert-typedef-to -stdpair-in-visual-studio-2015

问候,Guido


这篇关于使用VS 2017在xmemory line 881中出现C2440错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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