In file included from main.cpp:18:0:
game_database.h: In member function 'std::vector<GameObject> GameDatabase::DataByName(std::__cxx11::string) const':
game_database.h:35:46: error: invalid use of non-static member function 'bool GameDatabase::compareById(const GameObject&, const GameObject&)'
std::sort(v.begin(), v.end(), compareById);
^
game_database.h:66:8: note: declared here
bool compareById(const GameObject& a, const GameObject& b) {
^~~~~~~~~~~
game_database.h: In member function 'std::vector<GameObject> GameDatabase::DataByPosition(size_t, size_t) const':
game_database.h:46:46: error: invalid use of non-static member function 'bool GameDatabase::compareById(const GameObject&, const GameObject&)'
std::sort(v.begin(), v.end(), compareById);
^
game_database.h:66:8: note: declared here
bool compareById(const GameObject& a, const GameObject& b) {
^~~~~~~~~~~
game_database.h: In member function 'std::vector<GameObject> GameDatabase::Data() const':
game_database.h:54:46: error: invalid use of non-static member function 'bool GameDatabase::compareById(const GameObject&, const GameObject&)'
std::sort(v.begin(), v.end(), compareById);
^
game_database.h:66:8: note: declared here
bool compareById(const GameObject& a, const GameObject& b) {
^~~~~~~~~~~
game_database.h: In static member function 'static int GameDatabase::IsInDb(ObjectId)':
game_database.h:60:34: error: invalid use of member 'GameDatabase::dbase' in static member function
for (unsigned int i = 0; i < dbase.size(); i++)
^~~~~
game_database.h:70:27: note: declared here
std::vector<GameObject> dbase;
^~~~~
game_database.h:61:11: error: invalid use of member 'GameDatabase::dbase' in static member function
if (dbase[i].id == id)
^~~~~
game_database.h:70:27: note: declared here
std::vector<GameObject> dbase;
^~~~~
|
Файлы на сервере и клиенте не совпали
(2 109 b)
|