This commit is contained in:
Timur A. Fatkhullin
2025-10-21 22:35:45 +03:00
parent 49a2e2f9c1
commit e50fbfc57e
3 changed files with 12 additions and 10 deletions

View File

@@ -99,10 +99,10 @@ public:
logInfo(std::format("Create mount server instance (thread ID = {})", st.str()));
}
template <typename... LoggerArgsTs>
MccNetworkServer(asio::io_context& ctx, const handle_message_func_t& func, LoggerArgsTs&&... log_args)
template <typename... LoggerCtorArgsTs>
MccNetworkServer(asio::io_context& ctx, const handle_message_func_t& func, LoggerCtorArgsTs&&... log_args)
requires(not std::same_as<LoggerT, MccNullLogger>)
: LoggerT(std::forward<LoggerArgsTs>(log_args)...),
: LoggerT(std::forward<LoggerCtorArgsTs>(log_args)...),
_asioContext(ctx),
_handleMessageFunc(func),
_stopSignal(ctx),