Update CMake configuration and refactor code to use smart pointers for memory management

This commit is contained in:
Torsten Schulz
2025-08-11 11:15:54 +02:00
parent ba6b788075
commit f44d780537
10 changed files with 110 additions and 77 deletions

View File

@@ -3,8 +3,8 @@
// main function
int main(int, char **) {
Yc::Lib::Config *config = new Yc::Lib::Config();
Yc::Lib::Server server(config);
server.run();
auto config = std::make_shared<Yc::Lib::Config>();
auto server = std::make_shared<Yc::Lib::Server>(config);
server->run();
return 0;
}