Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1>------ Build started: Project: HW04, Configuration: Debug Win32 ------
- 1> Database.cpp
- 1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\tuple(829): error C2512: 'AccountData::AccountData': no appropriate default constructor available
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=AccountData,
- 1> _Tuple1=std::tuple<unsigned int &&>,
- 1> _Tuple2=std::tuple<>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=AccountData,
- 1> _Tuple1=std::tuple<unsigned int &&>,
- 1> _Tuple2=std::tuple<>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=AccountData
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=AccountData
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Other=std::_Tree_node<std::pair<const uint,AccountData>,void *>,
- 1> _Objty=std::pair<const uint,AccountData>,
- 1> _Ty=std::tuple<unsigned int &&>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Other=std::_Tree_node<std::pair<const uint,AccountData>,void *>,
- 1> _Objty=std::pair<const uint,AccountData>,
- 1> _Ty=std::tuple<unsigned int &&>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Alloc=std::allocator<std::_Tree_node<std::pair<const uint,AccountData>,void *>>,
- 1> _Ty=std::pair<const uint,AccountData>,
- 1> _Other=std::_Tree_node<std::pair<const uint,AccountData>,void *>,
- 1> _Objty=std::pair<const uint,AccountData>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Alloc=std::allocator<std::_Tree_node<std::pair<const uint,AccountData>,void *>>,
- 1> _Ty=std::pair<const uint,AccountData>,
- 1> _Other=std::_Tree_node<std::pair<const uint,AccountData>,void *>,
- 1> _Objty=std::pair<const uint,AccountData>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Other=std::_Tree_node<std::pair<const uint,AccountData>,void *>,
- 1> _Ty=std::pair<const uint,AccountData>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Other=std::_Tree_node<std::pair<const uint,AccountData>,void *>,
- 1> _Ty=std::pair<const uint,AccountData>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=AccountData,
- 1> _Traits=std::_Tmap_traits<uint,AccountData,std::less<uint>,std::allocator<std::pair<const uint,AccountData>>,false>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=AccountData,
- 1> _Traits=std::_Tmap_traits<uint,AccountData,std::less<uint>,std::allocator<std::pair<const uint,AccountData>>,false>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=AccountData,
- 1> _Pr=std::less<uint>,
- 1> _Alloc=std::allocator<std::pair<const uint,AccountData>>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=AccountData,
- 1> _Pr=std::less<uint>,
- 1> _Alloc=std::allocator<std::pair<const uint,AccountData>>
- 1> ]
- 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 &&)'
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=AccountData
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=AccountData
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=AccountData
- 1> ]
- 1>c:\program files (x86)\microsoft visual studio 14.0\vc\include\tuple(829): error C2512: 'CustomerData::CustomerData': no appropriate default constructor available
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=CustomerData,
- 1> _Tuple1=std::tuple<unsigned int &&>,
- 1> _Tuple2=std::tuple<>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=CustomerData,
- 1> _Tuple1=std::tuple<unsigned int &&>,
- 1> _Tuple2=std::tuple<>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=CustomerData
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=CustomerData
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Other=std::_Tree_node<std::pair<const uint,CustomerData>,void *>,
- 1> _Objty=std::pair<const uint,CustomerData>,
- 1> _Ty=std::tuple<unsigned int &&>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Other=std::_Tree_node<std::pair<const uint,CustomerData>,void *>,
- 1> _Objty=std::pair<const uint,CustomerData>,
- 1> _Ty=std::tuple<unsigned int &&>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Alloc=std::allocator<std::_Tree_node<std::pair<const uint,CustomerData>,void *>>,
- 1> _Ty=std::pair<const uint,CustomerData>,
- 1> _Other=std::_Tree_node<std::pair<const uint,CustomerData>,void *>,
- 1> _Objty=std::pair<const uint,CustomerData>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Alloc=std::allocator<std::_Tree_node<std::pair<const uint,CustomerData>,void *>>,
- 1> _Ty=std::pair<const uint,CustomerData>,
- 1> _Other=std::_Tree_node<std::pair<const uint,CustomerData>,void *>,
- 1> _Objty=std::pair<const uint,CustomerData>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Other=std::_Tree_node<std::pair<const uint,CustomerData>,void *>,
- 1> _Ty=std::pair<const uint,CustomerData>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Other=std::_Tree_node<std::pair<const uint,CustomerData>,void *>,
- 1> _Ty=std::pair<const uint,CustomerData>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=CustomerData,
- 1> _Traits=std::_Tmap_traits<uint,CustomerData,std::less<uint>,std::allocator<std::pair<const uint,CustomerData>>,false>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=CustomerData,
- 1> _Traits=std::_Tmap_traits<uint,CustomerData,std::less<uint>,std::allocator<std::pair<const uint,CustomerData>>,false>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=CustomerData,
- 1> _Pr=std::less<uint>,
- 1> _Alloc=std::allocator<std::pair<const uint,CustomerData>>
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=CustomerData,
- 1> _Pr=std::less<uint>,
- 1> _Alloc=std::allocator<std::pair<const uint,CustomerData>>
- 1> ]
- 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 &&)'
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=CustomerData
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=CustomerData
- 1> ]
- 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
- 1> with
- 1> [
- 1> _Kty=uint,
- 1> _Ty=CustomerData
- 1> ]
- 1> Bank.cpp
- 1> Generating Code...
- ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement