In file included from main.cpp:18:0:
game_database.h:40:24: error: expected ';' at end of member declaration
vector<GameObject> Data const {
^~~~
game_database.h:40:35: error: expected unqualified-id before '{' token
vector<GameObject> Data const {
^
game_database.h: In member function 'void GameDatabase::Remove(ObjectId)':
game_database.h:20:28: error: unable to deduce 'auto' from '((GameDatabase*)this)->GameDatabase::dataBase.std::map<long long unsigned int, GameObject, std::greater<long long unsigned int> >::find'
auto it = dataBase.find;
^~~~
game_database.h:20:28: note: couldn't deduce template parameter 'auto'
game_database.h:22:22: error: statement cannot resolve address of overloaded function
dataBase.erase;
~~~~~~~~~^~~~~
game_database.h: In member function 'std::vector<GameObject> GameDatabase::DataByPosition(size_t, size_t) const':
game_database.h:36:17: error: 're' was not declared in this scope
re.push_back(it->second);
^~
game_database.h:36:17: note: suggested alternative: 'ret'
re.push_back(it->second);
^~
ret
game_database.h:38:16: error: 're' was not declared in this scope
return re;
^~
game_database.h:38:16: note: suggested alternative: 'ret'
return re;
^~
ret
main.cpp: In function 'int main()':
main.cpp:57:34: error: no match for call to '(std::vector<GameObject>) ()'
for (const auto& e : db.Data())
^
|