尝试构建项目时出现xmemory0错误

时间:2017-07-04 15:23:42

标签: c++ debugging build visual-studio-2017

我正在为游戏开发一些额外的选项(这意味着我不了解整个游戏的方法,类等等。)

无论如何,我一直在尝试为我开发的代码构建项目来测试它们。我遇到了一些DirectX,Windows SDK版本,编译器问题,但设法解决了这些问题。

我已经通过SVN下载了源代码,因此整个项目实际上正在运行。我无法在我的本地笔记本电脑或台式电脑上构建它。

这次我收到xmemory0错误:

  

代码:C2280

     

描述:'std :: pair :: pair(const std :: pair&)':   试图引用已删除的函数File:xmemory0 Line:840

错误的代码部分是:

// xmemory0 internal header (from <memory>)
#pragma once
#ifndef _XMEMORY0_
#define _XMEMORY0_
#ifndef RC_INVOKED
#include <cstdint>  /* for uintptr_t */
#include <cstdlib>
#include <limits>
#include <new>
#include <xutility>

 #pragma pack(push,_CRT_PACKING)
 #pragma warning(push,_STL_WARNING_LEVEL)
 #pragma warning(disable: _STL_DISABLED_WARNINGS)
 #pragma push_macro("new")
 #undef new
... // other code lines
template<class _Objty,
    class... _Types>
    void construct(_Objty *_Ptr, _Types&&... _Args)
    {   // construct _Objty(_Types...) at _Ptr
    ::new ((void *)_Ptr) _Objty(_STD forward<_Types>(_Args)...); // HERE IS GETTING ERROR
    }
... // other code lines

0 个答案:

没有答案
相关问题