Always use struct

This commit is contained in:
2025-08-23 06:10:55 -04:00
parent b86cf3680e
commit 4af5e0423e
14 changed files with 56 additions and 41 deletions

View File

@@ -1,14 +1,15 @@
#pragma once
#include "config.hpp"
#include "connection_handler.hpp"
#include "connection_registry.hpp"
#include <atomic>
#include <memory>
#include <span>
#include <thread>
#include <vector>
#include "config.hpp"
#include "connection_handler.hpp"
#include "connection_registry.hpp"
/**
* High-performance multi-threaded server for handling network connections.
*
@@ -32,8 +33,7 @@
* - Prevention of accidental stack allocation that would break safety
* guarantees
*/
class Server : public std::enable_shared_from_this<Server> {
public:
struct Server : std::enable_shared_from_this<Server> {
/**
* Factory method to create a Server instance.
*