In file included from /usr/include/c++/7/vector:62:0,
from main.cpp:3:
/usr/include/c++/7/bits/stl_construct.h: In instantiation of 'void std::_Construct(_T1*, _Args&& ...) [with _T1 = GameObject; _Args = {GameObject* const&}]':
/usr/include/c++/7/bits/stl_uninitialized.h:83:18: required from 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::_Rb_tree_const_iterator<GameObject*>; _ForwardIterator = GameObject*; bool _TrivialValueTypes = false]'
/usr/include/c++/7/bits/stl_uninitialized.h:134:15: required from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::_Rb_tree_const_iterator<GameObject*>; _ForwardIterator = GameObject*]'
/usr/include/c++/7/bits/stl_uninitialized.h:289:37: required from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::_Rb_tree_const_iterator<GameObject*>; _ForwardIterator = GameObject*; _Tp = GameObject]'
/usr/include/c++/7/bits/stl_vector.h:1331:33: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = std::_Rb_tree_const_iterator<GameObject*>; _Tp = GameObject; _Alloc = std::allocator<GameObject>]'
/usr/include/c++/7/bits/stl_vector.h:1299:23: required from 'void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_InputIterator, _InputIterator, std::__false_type) [with _InputIterator = std::_Rb_tree_const_iterator<GameObject*>; _Tp = GameObject; _Alloc = std::allocator<GameObject>]'
/usr/include/c++/7/bits/stl_vector.h:414:26: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = std::_Rb_tree_const_iterator<GameObject*>; <template-parameter-2-2> = void; _Tp = GameObject; _Alloc = std::allocator<GameObject>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<GameObject>]'
game_database.h:68:54: required from here
/usr/include/c++/7/bits/stl_construct.h:75:7: error: no matching function for call to 'GameObject::GameObject(GameObject* const&)'
{ ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:10:8: note: candidate: GameObject::GameObject()
struct GameObject
^~~~~~~~~~
main.cpp:10:8: note: candidate expects 0 arguments, 1 provided
main.cpp:10:8: note: candidate: GameObject::GameObject(const GameObject&)
main.cpp:10:8: note: no known conversion for argument 1 from 'GameObject* const' to 'const GameObject&'
main.cpp:10:8: note: candidate: GameObject::GameObject(GameObject&&)
main.cpp:10:8: note: no known conversion for argument 1 from 'GameObject* const' to 'GameObject&&'
In file included from /usr/include/c++/7/vector:62:0,
from main.cpp:3:
/usr/include/c++/7/bits/stl_construct.h: In instantiation of 'void std::_Construct(_T1*, _Args&& ...) [with _T1 = GameObject; _Args = {const std::pair<const long long unsigned int, GameObject>&}]':
/usr/include/c++/7/bits/stl_uninitialized.h:83:18: required from 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::_Rb_tree_const_iterator<std::pair<const long long unsigned int, GameObject> >; _ForwardIterator = GameObject*; bool _TrivialValueTypes = false]'
/usr/include/c++/7/bits/stl_uninitialized.h:134:15: required from '_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = std::_Rb_tree_const_iterator<std::pair<const long long unsigned int, GameObject> >; _ForwardIterator = GameObject*]'
/usr/include/c++/7/bits/stl_uninitialized.h:289:37: required from '_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = std::_Rb_tree_const_iterator<std::pair<const long long unsigned int, GameObject> >; _ForwardIterator = GameObject*; _Tp = GameObject]'
/usr/include/c++/7/bits/stl_vector.h:1331:33: required from 'void std::vector<_Tp, _Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = std::_Rb_tree_const_iterator<std::pair<const long long unsigned int, GameObject> >; _Tp = GameObject; _Alloc = std::allocator<GameObject>]'
/usr/include/c++/7/bits/stl_vector.h:1299:23: required from 'void std::vector<_Tp, _Alloc>::_M_initialize_dispatch(_InputIterator, _InputIterator, std::__false_type) [with _InputIterator = std::_Rb_tree_const_iterator<std::pair<const long long unsigned int, GameObject> >; _Tp = GameObject; _Alloc = std::allocator<GameObject>]'
/usr/include/c++/7/bits/stl_vector.h:414:26: required from 'std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&) [with _InputIterator = std::_Rb_tree_const_iterator<std::pair<const long long unsigned int, GameObject> >; <template-parameter-2-2> = void; _Tp = GameObject; _Alloc = std::allocator<GameObject>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<GameObject>]'
game_database.h:75:63: required from here
/usr/include/c++/7/bits/stl_construct.h:75:7: error: no matching function for call to 'GameObject::GameObject(const std::pair<const long long unsigned int, GameObject>&)'
{ ::new(static_cast<void*>(__p)) _T1(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:10:8: note: candidate: GameObject::GameObject()
struct GameObject
^~~~~~~~~~
main.cpp:10:8: note: candidate expects 0 arguments, 1 provided
main.cpp:10:8: note: candidate: GameObject::GameObject(const GameObject&)
main.cpp:10:8: note: no known conversion for argument 1 from 'const std::pair<const long long unsigned int, GameObject>' to 'const GameObject&'
main.cpp:10:8: note: candidate: GameObject::GameObject(GameObject&&)
main.cpp:10:8: note: no known conversion for argument 1 from 'const std::pair<const long long unsigned int, GameObject>' to 'GameObject&&'
|
Файлы на сервере и клиенте не совпали
(2 385 b)
|