Game-as-a-Service / Machi-Koro-Cpp

5 stars 1 forks source link

[Repository] Only one instance of InMemoryRepository exists throughout the program (Singleton Pattern) #28

Open angtsusiong opened 10 months ago

angtsusiong commented 10 months ago

https://github.com/Game-as-a-Service/Machi-Koro-Cpp/blob/e9815c2dd692c64f8c93a5078902625465f7b9a6/controllers/in_memory_repository.cpp#L9-L12

This destructor only be called at the program exit.