I have this code..
when compiling through g++ 3.4.2, the line "numbers.push_back(32)" (second last line) generates this error:
19 passing `const std::vector<short int, std::allocator<short int> >' as `this' argument of `void std::vector<_Tp, _Alloc>:
ush_back(const _Tp&) [with _Tp = short int, _Alloc = std::allocator<short int>]' discards qualifiers
What am I doing wrong?
when compiling through g++ 3.4.2, the line "numbers.push_back(32)" (second last line) generates this error:
19 passing `const std::vector<short int, std::allocator<short int> >' as `this' argument of `void std::vector<_Tp, _Alloc>:
What am I doing wrong?