Advertisement
snake5

fucking c++

Jan 7th, 2018
527
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 8.14 KB | None | 0 0
  1. P:\VS15\VC\Tools\MSVC\14.12.25827\include\xmemory0(945): error C2280: 'std::pair<const _Kty,_Ty>::pair(const std::pair<const _Kty,_Ty> &)': attempting to reference a deleted function
  2.         with
  3.         [
  4.             _Kty=std::string,
  5.             _Ty=std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>
  6.         ]
  7. P:\VS15\VC\Tools\MSVC\14.12.25827\include\utility(135): note: see declaration of 'std::pair<const _Kty,_Ty>::pair'
  8.         with
  9.         [
  10.             _Kty=std::string,
  11.             _Ty=std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>
  12.         ]
  13. P:\VS15\VC\Tools\MSVC\14.12.25827\include\list(1255): note: see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,const std::pair<const _Kty,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>>&>(_Alloc &,_Objty *const ,const std::pair<const _Kty,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>> &)' being compiled
  14.         with
  15.         [
  16.             _Alloc=std::allocator<std::_List_node<std::pair<const std::string,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>>,std::_Default_allocator_traits<std::allocator<std::pair<const std::string,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>>>>::void_pointer>>,
  17.             _Ty=std::pair<const std::string,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>>,
  18.             _Kty=std::string,
  19.             _Objty=std::pair<const std::string,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>>
  20.         ]
  21. P:\VS15\VC\Tools\MSVC\14.12.25827\include\list(1253): note: see reference to function template instantiation 'void std::_Default_allocator_traits<_Alloc>::construct<_Ty,const std::pair<const _Kty,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>>&>(_Alloc &,_Objty *const ,const std::pair<const _Kty,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>> &)' being compiled
  22.         with
  23.         [
  24.             _Alloc=std::allocator<std::_List_node<std::pair<const std::string,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>>,std::_Default_allocator_traits<std::allocator<std::pair<const std::string,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>>>>::void_pointer>>,
  25.             _Ty=std::pair<const std::string,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>>,
  26.             _Kty=std::string,
  27.             _Objty=std::pair<const std::string,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>>
  28.         ]
  29. P:\VS15\VC\Tools\MSVC\14.12.25827\include\list(1237): note: see reference to function template instantiation 'void std::list<std::pair<const _Kty,_Ty>,std::allocator<std::pair<const _Kty,_Ty>>>::_Reusenode<const std::pair<const _Kty,_Ty>&>(std::_List_iterator<std::_List_val<std::_List_simple_types<std::pair<const _Kty,_Ty>>>>,_TArg)' being compiled
  30.         with
  31.         [
  32.             _Kty=std::string,
  33.             _Ty=std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>,
  34.             _TArg=const std::pair<const std::string,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>> &
  35.         ]
  36. P:\VS15\VC\Tools\MSVC\14.12.25827\include\list(1237): note: see reference to function template instantiation 'void std::list<std::pair<const _Kty,_Ty>,std::allocator<std::pair<const _Kty,_Ty>>>::_Reusenode<const std::pair<const _Kty,_Ty>&>(std::_List_iterator<std::_List_val<std::_List_simple_types<std::pair<const _Kty,_Ty>>>>,_TArg)' being compiled
  37.         with
  38.         [
  39.             _Kty=std::string,
  40.             _Ty=std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>,
  41.             _TArg=const std::pair<const std::string,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>> &
  42.         ]
  43. P:\VS15\VC\Tools\MSVC\14.12.25827\include\list(1047): note: see reference to function template instantiation 'void std::list<std::pair<const _Kty,_Ty>,std::allocator<std::pair<const _Kty,_Ty>>>::assign<std::_List_const_iterator<std::_List_val<std::_List_simple_types<std::pair<const _Kty,_Ty>>>>,void>(_Iter,_Iter)' being compiled
  44.         with
  45.         [
  46.             _Kty=std::string,
  47.             _Ty=std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>,
  48.             _Iter=std::_List_const_iterator<std::_List_val<std::_List_simple_types<std::pair<const std::string,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>>>>>
  49.         ]
  50. P:\VS15\VC\Tools\MSVC\14.12.25827\include\list(1047): note: see reference to function template instantiation 'void std::list<std::pair<const _Kty,_Ty>,std::allocator<std::pair<const _Kty,_Ty>>>::assign<std::_List_const_iterator<std::_List_val<std::_List_simple_types<std::pair<const _Kty,_Ty>>>>,void>(_Iter,_Iter)' being compiled
  51.         with
  52.         [
  53.             _Kty=std::string,
  54.             _Ty=std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>,
  55.             _Iter=std::_List_const_iterator<std::_List_val<std::_List_simple_types<std::pair<const std::string,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>>>>>
  56.         ]
  57. P:\VS15\VC\Tools\MSVC\14.12.25827\include\list(1033): note: while compiling class template member function 'std::list<std::pair<const _Kty,_Ty>,std::allocator<std::pair<const _Kty,_Ty>>> &std::list<std::pair<const _Kty,_Ty>,std::allocator<std::pair<const _Kty,_Ty>>>::operator =(const std::list<std::pair<const _Kty,_Ty>,std::allocator<std::pair<const _Kty,_Ty>>> &)'
  58.         with
  59.         [
  60.             _Kty=std::string,
  61.             _Ty=std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>
  62.         ]
  63. P:\VS15\VC\Tools\MSVC\14.12.25827\include\xhash(317): note: see reference to function template instantiation 'std::list<std::pair<const _Kty,_Ty>,std::allocator<std::pair<const _Kty,_Ty>>> &std::list<std::pair<const _Kty,_Ty>,std::allocator<std::pair<const _Kty,_Ty>>>::operator =(const std::list<std::pair<const _Kty,_Ty>,std::allocator<std::pair<const _Kty,_Ty>>> &)' being compiled
  64.         with
  65.         [
  66.             _Kty=std::string,
  67.             _Ty=std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>
  68.         ]
  69. P:\VS15\VC\Tools\MSVC\14.12.25827\include\xhash(169): note: see reference to class template instantiation 'std::list<std::pair<const _Kty,_Ty>,std::allocator<std::pair<const _Kty,_Ty>>>' being compiled
  70.         with
  71.         [
  72.             _Kty=std::string,
  73.             _Ty=std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>
  74.         ]
  75. P:\VS15\VC\Tools\MSVC\14.12.25827\include\unordered_map(92): note: see reference to class template instantiation 'std::_Hash<std::_Umap_traits<_Kty,_Ty,std::_Uhash_compare<_Kty,_Hasher,_Keyeq>,_Alloc,false>>' being compiled
  76.         with
  77.         [
  78.             _Kty=std::string,
  79.             _Ty=std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>,
  80.             _Hasher=std::hash<std::string>,
  81.             _Keyeq=std::equal_to<std::string>,
  82.             _Alloc=std::allocator<std::pair<const std::string,std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>>>
  83.         ]
  84. .\src\hlslparser.hpp(565): note: see reference to class template instantiation 'std::unordered_map<std::string,std::unique_ptr<ASTFunction,std::default_delete<_Ty>>,std::hash<_Kty>,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,std::unique_ptr<_Ty,std::default_delete<_Ty>>>>>' being compiled
  85.         with
  86.         [
  87.             _Ty=ASTFunction,
  88.             _Kty=std::string
  89.         ]
  90. P:\VS15\VC\Tools\MSVC\14.12.25827\include\utility(135): note: 'std::pair<const _Kty,_Ty>::pair(const std::pair<const _Kty,_Ty> &)': function was implicitly deleted because a data member invokes a deleted or inaccessible function 'std::unique_ptr<ASTFunction,std::default_delete<_Ty>>::unique_ptr(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)'
  91.         with
  92.         [
  93.             _Kty=std::string,
  94.             _Ty=std::unique_ptr<ASTFunction,std::default_delete<ASTFunction>>
  95.         ]
  96.         and
  97.         [
  98.             _Ty=ASTFunction
  99.         ]
  100. P:\VS15\VC\Tools\MSVC\14.12.25827\include\memory(2380): note: 'std::unique_ptr<ASTFunction,std::default_delete<_Ty>>::unique_ptr(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)': function was explicitly deleted
  101.         with
  102.         [
  103.             _Ty=ASTFunction
  104.         ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement