Advertisement
Guest User

Untitled

a guest
Nov 28th, 2015
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.05 KB | None | 0 0
  1. 1>------ Build started: Project: HW04, Configuration: Debug Win32 ------
  2. 1> Database.cpp
  3. 1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\tuple(829): error C2512: 'AccountData::AccountData': no appropriate default constructor available
  4. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\tuple(843): note: see reference to function template instantiation 'std::pair<const _Kty,_Ty>::pair<std::tuple<unsigned int &&>,std::tuple<>,0,>(_Tuple1 &,_Tuple2 &,std::integer_sequence<unsigned int,0>,std::integer_sequence<unsigned int>)' being compiled
  5. 1> with
  6. 1> [
  7. 1> _Kty=uint,
  8. 1> _Ty=AccountData,
  9. 1> _Tuple1=std::tuple<unsigned int &&>,
  10. 1> _Tuple2=std::tuple<>
  11. 1> ]
  12. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\tuple(843): note: see reference to function template instantiation 'std::pair<const _Kty,_Ty>::pair<std::tuple<unsigned int &&>,std::tuple<>,0,>(_Tuple1 &,_Tuple2 &,std::integer_sequence<unsigned int,0>,std::integer_sequence<unsigned int>)' being compiled
  13. 1> with
  14. 1> [
  15. 1> _Kty=uint,
  16. 1> _Ty=AccountData,
  17. 1> _Tuple1=std::tuple<unsigned int &&>,
  18. 1> _Tuple2=std::tuple<>
  19. 1> ]
  20. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(657): note: see reference to function template instantiation 'std::pair<const _Kty,_Ty>::pair<unsigned int&&,>(std::piecewise_construct_t,std::tuple<unsigned int &&>,std::tuple<>)' being compiled
  21. 1> with
  22. 1> [
  23. 1> _Kty=uint,
  24. 1> _Ty=AccountData
  25. 1> ]
  26. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(657): note: see reference to function template instantiation 'std::pair<const _Kty,_Ty>::pair<unsigned int&&,>(std::piecewise_construct_t,std::tuple<unsigned int &&>,std::tuple<>)' being compiled
  27. 1> with
  28. 1> [
  29. 1> _Kty=uint,
  30. 1> _Ty=AccountData
  31. 1> ]
  32. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(775): note: see reference to function template instantiation 'void std::allocator<_Other>::construct<_Objty,const std::piecewise_construct_t&,_Ty,std::tuple<>>(_Objty *,const std::piecewise_construct_t &,_Ty &&,std::tuple<> &&)' being compiled
  33. 1> with
  34. 1> [
  35. 1> _Other=std::_Tree_node<std::pair<const uint,AccountData>,void *>,
  36. 1> _Objty=std::pair<const uint,AccountData>,
  37. 1> _Ty=std::tuple<unsigned int &&>
  38. 1> ]
  39. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(775): note: see reference to function template instantiation 'void std::allocator<_Other>::construct<_Objty,const std::piecewise_construct_t&,_Ty,std::tuple<>>(_Objty *,const std::piecewise_construct_t &,_Ty &&,std::tuple<> &&)' being compiled
  40. 1> with
  41. 1> [
  42. 1> _Other=std::_Tree_node<std::pair<const uint,AccountData>,void *>,
  43. 1> _Objty=std::pair<const uint,AccountData>,
  44. 1> _Ty=std::tuple<unsigned int &&>
  45. 1> ]
  46. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(920): note: see reference to function template instantiation 'void std::allocator_traits<_Alloc>::construct<_Ty,const std::piecewise_construct_t&,std::tuple<unsigned int &&>,std::tuple<>>(std::allocator<_Other> &,_Objty *,const std::piecewise_construct_t &,std::tuple<unsigned int &&> &&,std::tuple<> &&)' being compiled
  47. 1> with
  48. 1> [
  49. 1> _Alloc=std::allocator<std::_Tree_node<std::pair<const uint,AccountData>,void *>>,
  50. 1> _Ty=std::pair<const uint,AccountData>,
  51. 1> _Other=std::_Tree_node<std::pair<const uint,AccountData>,void *>,
  52. 1> _Objty=std::pair<const uint,AccountData>
  53. 1> ]
  54. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(920): note: see reference to function template instantiation 'void std::allocator_traits<_Alloc>::construct<_Ty,const std::piecewise_construct_t&,std::tuple<unsigned int &&>,std::tuple<>>(std::allocator<_Other> &,_Objty *,const std::piecewise_construct_t &,std::tuple<unsigned int &&> &&,std::tuple<> &&)' being compiled
  55. 1> with
  56. 1> [
  57. 1> _Alloc=std::allocator<std::_Tree_node<std::pair<const uint,AccountData>,void *>>,
  58. 1> _Ty=std::pair<const uint,AccountData>,
  59. 1> _Other=std::_Tree_node<std::pair<const uint,AccountData>,void *>,
  60. 1> _Objty=std::pair<const uint,AccountData>
  61. 1> ]
  62. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(896): note: see reference to function template instantiation 'void std::_Wrap_alloc<std::allocator<_Other>>::construct<_Ty,const std::piecewise_construct_t&,std::tuple<unsigned int &&>,std::tuple<>>(_Ty *,const std::piecewise_construct_t &,std::tuple<unsigned int &&> &&,std::tuple<> &&)' being compiled
  63. 1> with
  64. 1> [
  65. 1> _Other=std::_Tree_node<std::pair<const uint,AccountData>,void *>,
  66. 1> _Ty=std::pair<const uint,AccountData>
  67. 1> ]
  68. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(896): note: see reference to function template instantiation 'void std::_Wrap_alloc<std::allocator<_Other>>::construct<_Ty,const std::piecewise_construct_t&,std::tuple<unsigned int &&>,std::tuple<>>(_Ty *,const std::piecewise_construct_t &,std::tuple<unsigned int &&> &&,std::tuple<> &&)' being compiled
  69. 1> with
  70. 1> [
  71. 1> _Other=std::_Tree_node<std::pair<const uint,AccountData>,void *>,
  72. 1> _Ty=std::pair<const uint,AccountData>
  73. 1> ]
  74. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(1119): note: see reference to function template instantiation 'std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *std::_Tree_comp_alloc<_Traits>::_Buynode<const std::piecewise_construct_t&,std::tuple<unsigned int &&>,std::tuple<>>(const std::piecewise_construct_t &,std::tuple<unsigned int &&> &&,std::tuple<> &&)' being compiled
  75. 1> with
  76. 1> [
  77. 1> _Kty=uint,
  78. 1> _Ty=AccountData,
  79. 1> _Traits=std::_Tmap_traits<uint,AccountData,std::less<uint>,std::allocator<std::pair<const uint,AccountData>>,false>
  80. 1> ]
  81. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(1119): note: see reference to function template instantiation 'std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *std::_Tree_comp_alloc<_Traits>::_Buynode<const std::piecewise_construct_t&,std::tuple<unsigned int &&>,std::tuple<>>(const std::piecewise_construct_t &,std::tuple<unsigned int &&> &&,std::tuple<> &&)' being compiled
  82. 1> with
  83. 1> [
  84. 1> _Kty=uint,
  85. 1> _Ty=AccountData,
  86. 1> _Traits=std::_Tmap_traits<uint,AccountData,std::less<uint>,std::allocator<std::pair<const uint,AccountData>>,false>
  87. 1> ]
  88. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\map(188): note: see reference to function template instantiation 'std::_Tree_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<const _Kty,_Ty>>>> std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::emplace_hint<const std::piecewise_construct_t&,std::tuple<unsigned int &&>,std::tuple<>>(std::_Tree_const_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<const _Kty,_Ty>>>>,const std::piecewise_construct_t &,std::tuple<unsigned int &&> &&,std::tuple<> &&)' being compiled
  89. 1> with
  90. 1> [
  91. 1> _Kty=uint,
  92. 1> _Ty=AccountData,
  93. 1> _Pr=std::less<uint>,
  94. 1> _Alloc=std::allocator<std::pair<const uint,AccountData>>
  95. 1> ]
  96. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\map(188): note: see reference to function template instantiation 'std::_Tree_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<const _Kty,_Ty>>>> std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::emplace_hint<const std::piecewise_construct_t&,std::tuple<unsigned int &&>,std::tuple<>>(std::_Tree_const_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<const _Kty,_Ty>>>>,const std::piecewise_construct_t &,std::tuple<unsigned int &&> &&,std::tuple<> &&)' being compiled
  97. 1> with
  98. 1> [
  99. 1> _Kty=uint,
  100. 1> _Ty=AccountData,
  101. 1> _Pr=std::less<uint>,
  102. 1> _Alloc=std::allocator<std::pair<const uint,AccountData>>
  103. 1> ]
  104. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\map(180): note: while compiling class template member function 'AccountData &std::map<uint,AccountData,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>::operator [](unsigned int &&)'
  105. 1> with
  106. 1> [
  107. 1> _Kty=uint,
  108. 1> _Ty=AccountData
  109. 1> ]
  110. 1> c:\users\eiva\desktop\c++\hw04\hw04\database.cpp(14): note: see reference to function template instantiation 'AccountData &std::map<uint,AccountData,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>::operator [](unsigned int &&)' being compiled
  111. 1> with
  112. 1> [
  113. 1> _Kty=uint,
  114. 1> _Ty=AccountData
  115. 1> ]
  116. 1> c:\users\eiva\desktop\c++\hw04\hw04\database.h(18): note: see reference to class template instantiation 'std::map<uint,AccountData,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>' being compiled
  117. 1> with
  118. 1> [
  119. 1> _Kty=uint,
  120. 1> _Ty=AccountData
  121. 1> ]
  122. 1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\tuple(829): error C2512: 'CustomerData::CustomerData': no appropriate default constructor available
  123. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\tuple(843): note: see reference to function template instantiation 'std::pair<const _Kty,_Ty>::pair<std::tuple<unsigned int &&>,std::tuple<>,0,>(_Tuple1 &,_Tuple2 &,std::integer_sequence<unsigned int,0>,std::integer_sequence<unsigned int>)' being compiled
  124. 1> with
  125. 1> [
  126. 1> _Kty=uint,
  127. 1> _Ty=CustomerData,
  128. 1> _Tuple1=std::tuple<unsigned int &&>,
  129. 1> _Tuple2=std::tuple<>
  130. 1> ]
  131. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\tuple(843): note: see reference to function template instantiation 'std::pair<const _Kty,_Ty>::pair<std::tuple<unsigned int &&>,std::tuple<>,0,>(_Tuple1 &,_Tuple2 &,std::integer_sequence<unsigned int,0>,std::integer_sequence<unsigned int>)' being compiled
  132. 1> with
  133. 1> [
  134. 1> _Kty=uint,
  135. 1> _Ty=CustomerData,
  136. 1> _Tuple1=std::tuple<unsigned int &&>,
  137. 1> _Tuple2=std::tuple<>
  138. 1> ]
  139. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(657): note: see reference to function template instantiation 'std::pair<const _Kty,_Ty>::pair<unsigned int&&,>(std::piecewise_construct_t,std::tuple<unsigned int &&>,std::tuple<>)' being compiled
  140. 1> with
  141. 1> [
  142. 1> _Kty=uint,
  143. 1> _Ty=CustomerData
  144. 1> ]
  145. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(657): note: see reference to function template instantiation 'std::pair<const _Kty,_Ty>::pair<unsigned int&&,>(std::piecewise_construct_t,std::tuple<unsigned int &&>,std::tuple<>)' being compiled
  146. 1> with
  147. 1> [
  148. 1> _Kty=uint,
  149. 1> _Ty=CustomerData
  150. 1> ]
  151. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(775): note: see reference to function template instantiation 'void std::allocator<_Other>::construct<_Objty,const std::piecewise_construct_t&,_Ty,std::tuple<>>(_Objty *,const std::piecewise_construct_t &,_Ty &&,std::tuple<> &&)' being compiled
  152. 1> with
  153. 1> [
  154. 1> _Other=std::_Tree_node<std::pair<const uint,CustomerData>,void *>,
  155. 1> _Objty=std::pair<const uint,CustomerData>,
  156. 1> _Ty=std::tuple<unsigned int &&>
  157. 1> ]
  158. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(775): note: see reference to function template instantiation 'void std::allocator<_Other>::construct<_Objty,const std::piecewise_construct_t&,_Ty,std::tuple<>>(_Objty *,const std::piecewise_construct_t &,_Ty &&,std::tuple<> &&)' being compiled
  159. 1> with
  160. 1> [
  161. 1> _Other=std::_Tree_node<std::pair<const uint,CustomerData>,void *>,
  162. 1> _Objty=std::pair<const uint,CustomerData>,
  163. 1> _Ty=std::tuple<unsigned int &&>
  164. 1> ]
  165. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(920): note: see reference to function template instantiation 'void std::allocator_traits<_Alloc>::construct<_Ty,const std::piecewise_construct_t&,std::tuple<unsigned int &&>,std::tuple<>>(std::allocator<_Other> &,_Objty *,const std::piecewise_construct_t &,std::tuple<unsigned int &&> &&,std::tuple<> &&)' being compiled
  166. 1> with
  167. 1> [
  168. 1> _Alloc=std::allocator<std::_Tree_node<std::pair<const uint,CustomerData>,void *>>,
  169. 1> _Ty=std::pair<const uint,CustomerData>,
  170. 1> _Other=std::_Tree_node<std::pair<const uint,CustomerData>,void *>,
  171. 1> _Objty=std::pair<const uint,CustomerData>
  172. 1> ]
  173. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0(920): note: see reference to function template instantiation 'void std::allocator_traits<_Alloc>::construct<_Ty,const std::piecewise_construct_t&,std::tuple<unsigned int &&>,std::tuple<>>(std::allocator<_Other> &,_Objty *,const std::piecewise_construct_t &,std::tuple<unsigned int &&> &&,std::tuple<> &&)' being compiled
  174. 1> with
  175. 1> [
  176. 1> _Alloc=std::allocator<std::_Tree_node<std::pair<const uint,CustomerData>,void *>>,
  177. 1> _Ty=std::pair<const uint,CustomerData>,
  178. 1> _Other=std::_Tree_node<std::pair<const uint,CustomerData>,void *>,
  179. 1> _Objty=std::pair<const uint,CustomerData>
  180. 1> ]
  181. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(896): note: see reference to function template instantiation 'void std::_Wrap_alloc<std::allocator<_Other>>::construct<_Ty,const std::piecewise_construct_t&,std::tuple<unsigned int &&>,std::tuple<>>(_Ty *,const std::piecewise_construct_t &,std::tuple<unsigned int &&> &&,std::tuple<> &&)' being compiled
  182. 1> with
  183. 1> [
  184. 1> _Other=std::_Tree_node<std::pair<const uint,CustomerData>,void *>,
  185. 1> _Ty=std::pair<const uint,CustomerData>
  186. 1> ]
  187. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(896): note: see reference to function template instantiation 'void std::_Wrap_alloc<std::allocator<_Other>>::construct<_Ty,const std::piecewise_construct_t&,std::tuple<unsigned int &&>,std::tuple<>>(_Ty *,const std::piecewise_construct_t &,std::tuple<unsigned int &&> &&,std::tuple<> &&)' being compiled
  188. 1> with
  189. 1> [
  190. 1> _Other=std::_Tree_node<std::pair<const uint,CustomerData>,void *>,
  191. 1> _Ty=std::pair<const uint,CustomerData>
  192. 1> ]
  193. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(1119): note: see reference to function template instantiation 'std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *std::_Tree_comp_alloc<_Traits>::_Buynode<const std::piecewise_construct_t&,std::tuple<unsigned int &&>,std::tuple<>>(const std::piecewise_construct_t &,std::tuple<unsigned int &&> &&,std::tuple<> &&)' being compiled
  194. 1> with
  195. 1> [
  196. 1> _Kty=uint,
  197. 1> _Ty=CustomerData,
  198. 1> _Traits=std::_Tmap_traits<uint,CustomerData,std::less<uint>,std::allocator<std::pair<const uint,CustomerData>>,false>
  199. 1> ]
  200. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\xtree(1119): note: see reference to function template instantiation 'std::_Tree_node<std::pair<const _Kty,_Ty>,void *> *std::_Tree_comp_alloc<_Traits>::_Buynode<const std::piecewise_construct_t&,std::tuple<unsigned int &&>,std::tuple<>>(const std::piecewise_construct_t &,std::tuple<unsigned int &&> &&,std::tuple<> &&)' being compiled
  201. 1> with
  202. 1> [
  203. 1> _Kty=uint,
  204. 1> _Ty=CustomerData,
  205. 1> _Traits=std::_Tmap_traits<uint,CustomerData,std::less<uint>,std::allocator<std::pair<const uint,CustomerData>>,false>
  206. 1> ]
  207. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\map(188): note: see reference to function template instantiation 'std::_Tree_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<const _Kty,_Ty>>>> std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::emplace_hint<const std::piecewise_construct_t&,std::tuple<unsigned int &&>,std::tuple<>>(std::_Tree_const_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<const _Kty,_Ty>>>>,const std::piecewise_construct_t &,std::tuple<unsigned int &&> &&,std::tuple<> &&)' being compiled
  208. 1> with
  209. 1> [
  210. 1> _Kty=uint,
  211. 1> _Ty=CustomerData,
  212. 1> _Pr=std::less<uint>,
  213. 1> _Alloc=std::allocator<std::pair<const uint,CustomerData>>
  214. 1> ]
  215. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\map(188): note: see reference to function template instantiation 'std::_Tree_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<const _Kty,_Ty>>>> std::_Tree<std::_Tmap_traits<_Kty,_Ty,_Pr,_Alloc,false>>::emplace_hint<const std::piecewise_construct_t&,std::tuple<unsigned int &&>,std::tuple<>>(std::_Tree_const_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<const _Kty,_Ty>>>>,const std::piecewise_construct_t &,std::tuple<unsigned int &&> &&,std::tuple<> &&)' being compiled
  216. 1> with
  217. 1> [
  218. 1> _Kty=uint,
  219. 1> _Ty=CustomerData,
  220. 1> _Pr=std::less<uint>,
  221. 1> _Alloc=std::allocator<std::pair<const uint,CustomerData>>
  222. 1> ]
  223. 1> c:\program files (x86)\microsoft visual studio 14.0\vc\include\map(180): note: while compiling class template member function 'CustomerData &std::map<uint,CustomerData,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>::operator [](unsigned int &&)'
  224. 1> with
  225. 1> [
  226. 1> _Kty=uint,
  227. 1> _Ty=CustomerData
  228. 1> ]
  229. 1> c:\users\eiva\desktop\c++\hw04\hw04\database.cpp(8): note: see reference to function template instantiation 'CustomerData &std::map<uint,CustomerData,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>::operator [](unsigned int &&)' being compiled
  230. 1> with
  231. 1> [
  232. 1> _Kty=uint,
  233. 1> _Ty=CustomerData
  234. 1> ]
  235. 1> c:\users\eiva\desktop\c++\hw04\hw04\database.h(17): note: see reference to class template instantiation 'std::map<uint,CustomerData,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>' being compiled
  236. 1> with
  237. 1> [
  238. 1> _Kty=uint,
  239. 1> _Ty=CustomerData
  240. 1> ]
  241. 1> Bank.cpp
  242. 1> Generating Code...
  243. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement