Hallo,
kurz und knapp:
cmd_general.cpp:832:23: error: no matching constructor for initialization of
'std::vector<LPITEM>' (aka 'vector<CItem *>')
std::vector <LPITEM> item_gets(NULL);
^ ~~~~
/usr/include/c++/v1/vector:489:40: note: candidate constructor not viable: no
known conversion from 'nullptr_t' to 'const allocator_type' (aka 'const
std::__1::allocator<CItem *>') for 1st argument
_LIBCPP_INLINE_VISIBILITY explicit vector(const allocator_type& __a)
^
/usr/include/c++/v1/vector:501:14: note: candidate constructor not viable: no
known conversion from 'nullptr_t' to 'size_type' (aka 'unsigned int') for
1st argument
explicit vector(size_type __n);
^
/usr/include/c++/v1/vector:537:5: note: candidate constructor not viable: no
known conversion from 'nullptr_t' to 'initializer_list<value_type>' (aka
'initializer_list<CItem *>') for 1st argument
vector(initializer_list<value_type> __il);
^
/usr/include/c++/v1/vector:549:5: note: candidate constructor not viable: no
known conversion from 'nullptr_t' to 'const std::__1::vector<CItem *,
std::__1::allocator<CItem *> >' for 1st argument
vector(const vector& __x);
^
/usr/include/c++/v1/vector:555:5: note: candidate constructor not viable: no
known conversion from 'nullptr_t' to 'std::__1::vector<CItem *,
std::__1::allocator<CItem *> >' for 1st argument
vector(vector&& __x)
^
/usr/include/c++/v1/vector:508:9: note: candidate constructor template not
viable: requires 2 arguments, but 1 was provided
vector(_InputIterator __first,
^
/usr/include/c++/v1/vector:516:9: note: candidate constructor template not
viable: requires at least 3 arguments, but 1 was provided
vector(_InputIterator __first, _InputIterator __last, const allo...
^
/usr/include/c++/v1/vector:523:9: note: candidate constructor template not
viable: requires 2 arguments, but 1 was provided
vector(_ForwardIterator __first,
^
/usr/include/c++/v1/vector:530:9: note: candidate constructor template not
viable: requires at least 3 arguments, but 1 was provided
vector(_ForwardIterator __first, _ForwardIterator __last, const ...
^
/usr/include/c++/v1/vector:483:5: note: candidate constructor not viable:
requires 0 arguments, but 1 was provided
vector() _NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value)
^
/usr/include/c++/v1/vector:505:5: note: candidate constructor not viable:
requires 2 arguments, but 1 was provided
vector(size_type __n, const_reference __x);
^
/usr/include/c++/v1/vector:539:5: note: candidate constructor not viable:
requires 2 arguments, but 1 was provided
vector(initializer_list<value_type> __il, const allocator_type& __a);
^
/usr/include/c++/v1/vector:550:5: note: candidate constructor not viable:
requires 2 arguments, but 1 was provided
vector(const vector& __x, const allocator_type& __a);
^
/usr/include/c++/v1/vector:562:5: note: candidate constructor not viable:
requires 2 arguments, but 1 was provided
vector(vector&& __x, const allocator_type& __a);
^
/usr/include/c++/v1/vector:506:5: note: candidate constructor not viable:
requires 3 arguments, but 1 was provided
vector(size_type __n, const_reference __x, const allocator_type& __a);
^
1 error generated.
Ich weiß dass es an der cmd_general liegt, verstehe aber nicht wieso.
Code Zeile: