Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/159.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ Visual Studio C++;引用删除函数编译错误_C++_Dll_Visual Studio 2015 - Fatal编程技术网

C++ Visual Studio C++;引用删除函数编译错误

C++ Visual Studio C++;引用删除函数编译错误,c++,dll,visual-studio-2015,C++,Dll,Visual Studio 2015,如果我尝试编译此文件(Visual Studio 2015): #定义导出(API)(dllexport) //#包括“readerwriterqueue.h” #包括 #包括 类基类 { 公众: 甲级{ 螺纹总谐波失真; //moodycamel::BlockingReaderWriterQueue processqueue; }; std::map-mpmap; }; // 端类基类 类导出API B:公共基类{}; 我收到一条关于的错误消息 Severity Code De

如果我尝试编译此文件(Visual Studio 2015):

#定义导出(API)(dllexport)
//#包括“readerwriterqueue.h”
#包括
#包括
类基类
{
公众:
甲级{
螺纹总谐波失真;
//moodycamel::BlockingReaderWriterQueue processqueue;
};
std::map-mpmap;
};  // 端类基类
类导出API B:公共基类{};
我收到一条关于的错误消息

Severity    Code    Description Project File    Line    Suppression State
Error   C2280   'std::pair<const _Kty,_Ty>::pair(const std::pair<const _Kty,_Ty> &)': attempting to reference a deleted function    Example C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0 737 
严重性代码描述项目文件行抑制状态
错误C2280“std::pair::pair(const std::pair&”):尝试引用已删除的函数示例C:\Program Files(x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0 737
控制台输出:

    Build started...
1>------ Build started: Project: Example, Configuration: Debug x64 ------
1>Example.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(737): error C2280: 'std::pair<const _Kty,_Ty>::pair(const std::pair<const _Kty,_Ty> &)': attempting to reference a deleted function
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\utility(112): note: see declaration of 'std::pair<const _Kty,_Ty>::pair'
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(857): note: see reference to function template instantiation 'void std::allocator<_Other>::construct<_Objty,_Ty&>(_Objty *,_Ty &)' being compiled
1>        with
1>        [
1>            _Other=std::_Tree_node<std::pair<const unsigned int,BaseClass::A>,void *>,
1>            _Objty=std::pair<const unsigned int,BaseClass::A>,
1>            _Ty=std::pair<const unsigned int,BaseClass::A>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(857): note: see reference to function template instantiation 'void std::allocator<_Other>::construct<_Objty,_Ty&>(_Objty *,_Ty &)' being compiled
1>        with
1>        [
1>            _Other=std::_Tree_node<std::pair<const unsigned int,BaseClass::A>,void *>,
1>            _Objty=std::pair<const unsigned int,BaseClass::A>,
1>            _Ty=std::pair<const unsigned int,BaseClass::A>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(996): note: see reference to function template instantiation 'void std::allocator_traits<_Alloc>::construct<_Ty,_Ty&>(std::allocator<_Other> &,_Objty *,_Ty &)' being compiled
1>        with
1>        [
1>            _Alloc=std::allocator<std::_Tree_node<std::pair<const unsigned int,BaseClass::A>,void *>>,
1>            _Ty=std::pair<const unsigned int,BaseClass::A>,
1>            _Other=std::_Tree_node<std::pair<const unsigned int,BaseClass::A>,void *>,
1>            _Objty=std::pair<const unsigned int,BaseClass::A>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(995): note: see reference to function template instantiation 'void std::allocator_traits<_Alloc>::construct<_Ty,_Ty&>(std::allocator<_Other> &,_Objty *,_Ty &)' being compiled
1>        with
1>        [
1>            _Alloc=std::allocator<std::_Tree_node<std::pair<const unsigned int,BaseClass::A>,void *>>,
1>            _Ty=std::pair<const unsigned int,BaseClass::A>,
1>            _Other=std::_Tree_node<std::pair<const unsigned int,BaseClass::A>,void *>,
1>            _Objty=std::pair<const unsigned int,BaseClass::A>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(889): note: see reference to function template instantiation 'void std::_Wrap_alloc<std::allocator<_Other>>::construct<_Ty,_Ty&>(_Ty *,_Ty &)' being compiled
1>        with
1>        [
1>            _Other=std::_Tree_node<std::pair<const unsigned int,BaseClass::A>,void *>,
1>            _Ty=std::pair<const unsigned int,BaseClass::A>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(887): note: see reference to function template instantiation 'void std::_Wrap_alloc<std::allocator<_Other>>::construct<_Ty,_Ty&>(_Ty *,_Ty &)' being compiled
1>        with
1>        [
1>            _Other=std::_Tree_node<std::pair<const unsigned int,BaseClass::A>,void *>,
1>            _Ty=std::pair<const unsigned int,BaseClass::A>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1939): note: see reference to function template instantiation 'std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *std::_Tree_comp_alloc<_Traits>::_Buynode<std::pair<const _Kty,_Ty>&>(std::pair<const _Kty,_Ty> &)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Traits=std::_Tmap_traits<unsigned int,BaseClass::A,std::less<unsigned int>,std::allocator<std::pair<const unsigned int,BaseClass::A>>,false>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1939): note: see reference to function template instantiation 'std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *std::_Tree_comp_alloc<_Traits>::_Buynode<std::pair<const _Kty,_Ty>&>(std::pair<const _Kty,_Ty> &)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Traits=std::_Tmap_traits<unsigned int,BaseClass::A,std::less<unsigned int>,std::allocator<std::pair<const unsigned int,BaseClass::A>>,false>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1966): note: see reference to function template instantiation 'std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy_or_move<std::pair<const _Kty,_Ty>,std::integral_constant<bool,false>>(std::pair<const _Kty,_Ty> &,std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy_tag,_Is_set)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>,
1>            _Is_set=std::integral_constant<bool,false>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1965): note: see reference to function template instantiation 'std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy_or_move<std::pair<const _Kty,_Ty>,std::integral_constant<bool,false>>(std::pair<const _Kty,_Ty> &,std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy_tag,_Is_set)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>,
1>            _Is_set=std::integral_constant<bool,false>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1921): note: see reference to function template instantiation 'std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy_nodes<_Moveit>(std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *,std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *,_Moveit)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>,
1>            _Moveit=std::_Tree<std::_Tmap_traits<unsigned int,BaseClass::A,std::less<unsigned int>,std::allocator<std::pair<const unsigned int,BaseClass::A>>,false>>::_Copy_tag
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1921): note: see reference to function template instantiation 'std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy_nodes<_Moveit>(std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *,std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *,_Moveit)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>,
1>            _Moveit=std::_Tree<std::_Tmap_traits<unsigned int,BaseClass::A,std::less<unsigned int>,std::allocator<std::pair<const unsigned int,BaseClass::A>>,false>>::_Copy_tag
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1104): note: see reference to function template instantiation 'void std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy<std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy_tag>(const std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>> &,_Moveit)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>,
1>            _Moveit=std::_Tree<std::_Tmap_traits<unsigned int,BaseClass::A,std::less<unsigned int>,std::allocator<std::pair<const unsigned int,BaseClass::A>>,false>>::_Copy_tag
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1104): note: see reference to function template instantiation 'void std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy<std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy_tag>(const std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>> &,_Moveit)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>,
1>            _Moveit=std::_Tree<std::_Tmap_traits<unsigned int,BaseClass::A,std::less<unsigned int>,std::allocator<std::pair<const unsigned int,BaseClass::A>>,false>>::_Copy_tag
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1095): note: while compiling class template member function 'std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>> &std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::operator =(const std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>> &)'
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\map(154): note: see reference to function template instantiation 'std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>> &std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::operator =(const std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>> &)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\map(73): note: see reference to class template instantiation 'std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>
1>        ]
1>..\..\Example.cpp(15): note: see reference to class template instantiation 'std::map<unsigned int,BaseClass::A,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A
1>        ]
1>Done building project "Example.vcxproj" -- FAILED.
StopOnFirstBuildError: Build cancelled because project "Example" failed to build.
Build has been canceled.
已开始生成。。。
1> ----构建已启动:项目:示例,配置:调试x64------
1> Example.cpp
1> C:\ProgramFiles(x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(737):错误C2280:“std::pair::pair(const std::pair&”):试图引用已删除的函数
1> 与
1>        [
1> _Kty=无符号整数,
1> _Ty=基类::A
1>        ]
1> C:\ProgramFiles(x86)\Microsoft Visual Studio 14.0\VC\include\utility(112):注意:请参见“std::pair::pair”的声明
1> 与
1>        [
1> _Kty=无符号整数,
1> _Ty=基类::A
1>        ]
1> C:\Program Files(x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(857):注意:请参阅正在编译的函数模板实例化“void std::allocator::construct(_Objty*,_Ty&)”的参考
1> 与
1>        [
1> _Other=std::_Tree_节点,
1> _Objty=std::pair,
1> _Ty=std::pair
1>        ]
1> C:\Program Files(x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(857):注意:请参阅正在编译的函数模板实例化“void std::allocator::construct(_Objty*,_Ty&)”的参考
1> 与
1>        [
1> _Other=std::_Tree_节点,
1> _Objty=std::pair,
1> _Ty=std::pair
1>        ]
1> C:\ProgramFiles(x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(996):注意:请参阅正在编译的函数模板实例化“void std::allocator_traits::construct(std::allocator&、_Objty*、_Ty&)”的参考
1> 与
1>        [
1> _Alloc=std::分配器,
1> _Ty=std::pair,
1> _Other=std::_Tree_节点,
1> _Objty=std::pair
1>        ]
1> C:\Program Files(x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(995):注意:请参阅正在编译的函数模板实例化“void std::allocator_traits::construct(std::allocator&,_Objty*,_Ty&)”的参考
1> 与
1>        [
1> _Alloc=std::分配器,
1> _Ty=std::pair,
1> _Other=std::_Tree_节点,
1> _Objty=std::pair
1>        ]
1> C:\ProgramFiles(x86)\Microsoft Visual Studio 14.0\VC\include\xtree(889):注意:请参阅正在编译的函数模板实例化“void std::_Wrap\u alloc::construct(_Ty*,_Ty&)”的参考
1> 与
1>        [
1> _Other=std::_Tree_节点,
1> _Ty=std::pair
1>        ]
1> C:\Program Files(x86)\Microsoft Visual Studio 14.0\VC\include\xtree(887):注意:请参阅正在编译的函数模板实例化“void std::_Wrap\u alloc::construct(_Ty*,_Ty&)”的参考
1> 与
1>        [
1> _Other=std::_Tree_节点,
1> _Ty=std::pair
1>        ]
1> C:\ProgramFiles(x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1939):注意:请参阅正在编译的函数模板实例化“std::\u Tree\u node*std::\u Tree\u comp\u alloc::\u Buynode(std::pair&)”的参考
1> 与
1>        [
1> _Kty=无符号整数,
1> _Ty=基类::A,
1> _Traits=std:_Tmap_Traits
1>        ]
1> C:\ProgramFiles(x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1939):注意:请参阅正在编译的函数模板实例化“std::\u Tree\u node*std::\u Tree\u comp\u alloc::\u Buynode(std::pair&)”的参考
1> 与
1>        [
1> _Kty=无符号整数,
1> _Ty=基类::A,
1> _Traits=std:_Tmap_Traits
1>        ]
1> C:\ProgramFiles(x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1966):注意:请参阅正在编译的函数模板实例化“std::_Tree_node*std:_Tree:_Copy_或_move(std::pair&,std:_Tree:_Copy_tag,_Is_set)”
1> 与
1>        [
1> _Kty=无符号整数,
1> _Ty=基类::A,
1> _Pr=标准::更少,
1> _Alloc=std::分配器,
1> _是_集=标准::积分_常数
1>        ]
1> C:\ProgramFiles(x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1965):注意:请参阅正在编译的函数模板实例化“std::_Tree_node*std:_Tree:_Copy_或_move(std::pair&,std:_Tree:_Copy_tag,_Is_set)”
1> 与
1>        [
1> _Kty=无符号整数,
1> _Ty=基类::A,
1> _Pr=标准::更少,
1> _Alloc=std::分配器,
1> _是_集=标准::积分_常数
1>        ]
1> C:\ProgramFiles(x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1921):注意:请参阅正在编译的函数模板实例化“std::_Tree\u node*std:_Tree:_Copy\u node(std:_Tree\u node*,std:_Tree\u node*,_Moveit)”的参考
1> 与
1>        [
1> _Kty=无符号整数,
1> _Ty=基类::A,
1> _Pr=标准::更少,
1> _Alloc=std::分配器,
1> _Moveit=std::_树::_复制\u标记
1>        ]
1> C:\ProgramFiles(x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1921):注意:请参阅正在编译的函数模板实例化“std::_Tree\u node*std:_Tree:_Copy\u node(std:_Tree\u node*,std:_Tree\u node*,_Moveit)”的参考
1> 与
1>        [
1> _Kty=无符号整数,
1> _Ty=基类::A,
1> _Pr=标准::更少,
1> _Alloc=std::分配器,
1> _Moveit=std::_树::_复制\u标记
1>        ]
1> C:\程序文件
    Build started...
1>------ Build started: Project: Example, Configuration: Debug x64 ------
1>Example.cpp
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(737): error C2280: 'std::pair<const _Kty,_Ty>::pair(const std::pair<const _Kty,_Ty> &)': attempting to reference a deleted function
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\utility(112): note: see declaration of 'std::pair<const _Kty,_Ty>::pair'
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(857): note: see reference to function template instantiation 'void std::allocator<_Other>::construct<_Objty,_Ty&>(_Objty *,_Ty &)' being compiled
1>        with
1>        [
1>            _Other=std::_Tree_node<std::pair<const unsigned int,BaseClass::A>,void *>,
1>            _Objty=std::pair<const unsigned int,BaseClass::A>,
1>            _Ty=std::pair<const unsigned int,BaseClass::A>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(857): note: see reference to function template instantiation 'void std::allocator<_Other>::construct<_Objty,_Ty&>(_Objty *,_Ty &)' being compiled
1>        with
1>        [
1>            _Other=std::_Tree_node<std::pair<const unsigned int,BaseClass::A>,void *>,
1>            _Objty=std::pair<const unsigned int,BaseClass::A>,
1>            _Ty=std::pair<const unsigned int,BaseClass::A>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(996): note: see reference to function template instantiation 'void std::allocator_traits<_Alloc>::construct<_Ty,_Ty&>(std::allocator<_Other> &,_Objty *,_Ty &)' being compiled
1>        with
1>        [
1>            _Alloc=std::allocator<std::_Tree_node<std::pair<const unsigned int,BaseClass::A>,void *>>,
1>            _Ty=std::pair<const unsigned int,BaseClass::A>,
1>            _Other=std::_Tree_node<std::pair<const unsigned int,BaseClass::A>,void *>,
1>            _Objty=std::pair<const unsigned int,BaseClass::A>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(995): note: see reference to function template instantiation 'void std::allocator_traits<_Alloc>::construct<_Ty,_Ty&>(std::allocator<_Other> &,_Objty *,_Ty &)' being compiled
1>        with
1>        [
1>            _Alloc=std::allocator<std::_Tree_node<std::pair<const unsigned int,BaseClass::A>,void *>>,
1>            _Ty=std::pair<const unsigned int,BaseClass::A>,
1>            _Other=std::_Tree_node<std::pair<const unsigned int,BaseClass::A>,void *>,
1>            _Objty=std::pair<const unsigned int,BaseClass::A>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(889): note: see reference to function template instantiation 'void std::_Wrap_alloc<std::allocator<_Other>>::construct<_Ty,_Ty&>(_Ty *,_Ty &)' being compiled
1>        with
1>        [
1>            _Other=std::_Tree_node<std::pair<const unsigned int,BaseClass::A>,void *>,
1>            _Ty=std::pair<const unsigned int,BaseClass::A>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(887): note: see reference to function template instantiation 'void std::_Wrap_alloc<std::allocator<_Other>>::construct<_Ty,_Ty&>(_Ty *,_Ty &)' being compiled
1>        with
1>        [
1>            _Other=std::_Tree_node<std::pair<const unsigned int,BaseClass::A>,void *>,
1>            _Ty=std::pair<const unsigned int,BaseClass::A>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1939): note: see reference to function template instantiation 'std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *std::_Tree_comp_alloc<_Traits>::_Buynode<std::pair<const _Kty,_Ty>&>(std::pair<const _Kty,_Ty> &)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Traits=std::_Tmap_traits<unsigned int,BaseClass::A,std::less<unsigned int>,std::allocator<std::pair<const unsigned int,BaseClass::A>>,false>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1939): note: see reference to function template instantiation 'std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *std::_Tree_comp_alloc<_Traits>::_Buynode<std::pair<const _Kty,_Ty>&>(std::pair<const _Kty,_Ty> &)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Traits=std::_Tmap_traits<unsigned int,BaseClass::A,std::less<unsigned int>,std::allocator<std::pair<const unsigned int,BaseClass::A>>,false>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1966): note: see reference to function template instantiation 'std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy_or_move<std::pair<const _Kty,_Ty>,std::integral_constant<bool,false>>(std::pair<const _Kty,_Ty> &,std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy_tag,_Is_set)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>,
1>            _Is_set=std::integral_constant<bool,false>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1965): note: see reference to function template instantiation 'std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy_or_move<std::pair<const _Kty,_Ty>,std::integral_constant<bool,false>>(std::pair<const _Kty,_Ty> &,std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy_tag,_Is_set)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>,
1>            _Is_set=std::integral_constant<bool,false>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1921): note: see reference to function template instantiation 'std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy_nodes<_Moveit>(std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *,std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *,_Moveit)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>,
1>            _Moveit=std::_Tree<std::_Tmap_traits<unsigned int,BaseClass::A,std::less<unsigned int>,std::allocator<std::pair<const unsigned int,BaseClass::A>>,false>>::_Copy_tag
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1921): note: see reference to function template instantiation 'std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy_nodes<_Moveit>(std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *,std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *,_Moveit)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>,
1>            _Moveit=std::_Tree<std::_Tmap_traits<unsigned int,BaseClass::A,std::less<unsigned int>,std::allocator<std::pair<const unsigned int,BaseClass::A>>,false>>::_Copy_tag
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1104): note: see reference to function template instantiation 'void std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy<std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy_tag>(const std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>> &,_Moveit)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>,
1>            _Moveit=std::_Tree<std::_Tmap_traits<unsigned int,BaseClass::A,std::less<unsigned int>,std::allocator<std::pair<const unsigned int,BaseClass::A>>,false>>::_Copy_tag
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1104): note: see reference to function template instantiation 'void std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy<std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::_Copy_tag>(const std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>> &,_Moveit)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>,
1>            _Moveit=std::_Tree<std::_Tmap_traits<unsigned int,BaseClass::A,std::less<unsigned int>,std::allocator<std::pair<const unsigned int,BaseClass::A>>,false>>::_Copy_tag
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xtree(1095): note: while compiling class template member function 'std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>> &std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::operator =(const std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>> &)'
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\map(154): note: see reference to function template instantiation 'std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>> &std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::operator =(const std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>> &)' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>
1>        ]
1>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\map(73): note: see reference to class template instantiation 'std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A,
1>            _Pr=std::less<unsigned int>,
1>            _Alloc=std::allocator<std::pair<const unsigned int,BaseClass::A>>
1>        ]
1>..\..\Example.cpp(15): note: see reference to class template instantiation 'std::map<unsigned int,BaseClass::A,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>' being compiled
1>        with
1>        [
1>            _Kty=unsigned int,
1>            _Ty=BaseClass::A
1>        ]
1>Done building project "Example.vcxproj" -- FAILED.
StopOnFirstBuildError: Build cancelled because project "Example" failed to build.
Build has been canceled.
thread( const thread& ) = delete; (since C++11)