You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now, we use in memory repository. However, we will need to use database as repository.
We need to add new implementation of repository interface. Also, modify the parameter of GameRepository::SaveGame and GameRepository::AddGame to take raw pointer instead of shared_ptr.
The text was updated successfully, but these errors were encountered:
The map games_ should use shared pointers. It stores the object that is currently in use and is responsible for updates to the database.
The memory of the game object should be destroyed, if currently we don't need to manipulate the data.
For now, we use in memory repository. However, we will need to use database as repository.
We need to add new implementation of repository interface. Also, modify the parameter of
GameRepository::SaveGame
andGameRepository::AddGame
to take raw pointer instead of shared_ptr.The text was updated successfully, but these errors were encountered: