From 7f33438cfcdcca47dbaad0776e9f8bd9c5af8139 Mon Sep 17 00:00:00 2001 From: Denis Kovalchuk Date: Thu, 19 Dec 2024 00:29:52 +0300 Subject: [PATCH] core: use const reference --- include/ftp/ftp_exception.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ftp/ftp_exception.hpp b/include/ftp/ftp_exception.hpp index 8bedd97..8d81c6a 100644 --- a/include/ftp/ftp_exception.hpp +++ b/include/ftp/ftp_exception.hpp @@ -42,7 +42,7 @@ class FTP_EXPORT ftp_exception : public std::exception } template - ftp_exception(boost::system::error_code & ec, const std::string & fmt, Args && ...args) + ftp_exception(const boost::system::error_code & ec, const std::string & fmt, Args && ...args) { message_ = detail::utils::format(fmt, std::forward(args)...); message_.append(": ");