Hi,
I have created an instance of the class however I am unable to push_back the name of the ship to the vector.
1 2 3 4 5 6 7
|
if (rows->_rows.size != rows->rows_Size)
{
rows->_rows.push_back (ship->name);
}
|
I get the following errors.
Error 4 error C2040: '!=' : 'unsigned int (__thiscall std::vector<_Ty>::* )(void) throw() const' differs in levels of indirection from 'int'
Error 3 error C2446: '!=' : no conversion from 'int' to 'unsigned int (__thiscall std::vector<_Ty>::* )(void) throw() const'
Error 5 error C2664: 'void std::vector<_Ty>::push_back(Berths &&)' : cannot convert parameter 1 from 'std::string' to 'Berths &&'
Error 1 error C3867: 'std::vector<_Ty>::size': function call missing argument list; use '&std::vector<_Ty>::size' to create a pointer to member
6 IntelliSense: no instance of overloaded function "std::vector<_Ty, _Alloc>::push_back [with _Ty=Berths, _Alloc=std::allocator<Berths>]" matches the argument list
argument types are: (std::string)
object type is: std::vector<Berths, std::allocator<Berths>>