Write your question here.
Hi, I can't understand why the following code compile. the error is:
Description Resource Path Location Type
passing 'const std::vector<Recipe>' as 'this' argument of 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Recipe; _Alloc = std::allocator<Recipe>; std::vector<_Tp, _Alloc>::value_type = Recipe]' discards qualifiers [-fpermissive] User.cpp /HW5 line 22 C/C++ Problem