@@ -640,17 +640,17 @@ R"x*x*x(<html>
640640
641641 // session 的连接日志输出函数, 用于输出连接 id 相关的日志信息, 简化重复
642642 // 的 connection id 这些信息的代码.
643- auto log_conn_error () noexcept
643+ auto log_conn_error () const noexcept
644644 {
645645 return std::move (XLOG_FERR (" connection id: {}" , m_connection_id));
646646 }
647647
648- auto log_conn_warning () noexcept
648+ auto log_conn_warning () const noexcept
649649 {
650650 return std::move (XLOG_FWARN (" connection id: {}" , m_connection_id));
651651 }
652652
653- auto log_conn_debug () noexcept
653+ auto log_conn_debug () const noexcept
654654 {
655655 return std::move (XLOG_FDBG (" connection id: {}" , m_connection_id));
656656 }
@@ -3220,7 +3220,7 @@ R"x*x*x(<html>
32203220 }
32213221
32223222 // is_crytpo_stream 判断当前连接是否为加密连接.
3223- inline bool is_crytpo_stream () const
3223+ inline bool is_crytpo_stream () const noexcept
32243224 {
32253225 return boost::variant2::holds_alternative<ssl_stream>(m_remote_socket);
32263226 }
@@ -3336,7 +3336,7 @@ R"x*x*x(<html>
33363336 }
33373337
33383338 inline fs::path path_cat (
3339- const std::wstring& doc, const std::wstring& target)
3339+ const std::wstring& doc, const std::wstring& target) const noexcept
33403340 {
33413341 size_t start_pos = 0 ;
33423342 for (auto & c : target)
@@ -3367,7 +3367,7 @@ R"x*x*x(<html>
33673367 };
33683368
33693369 template <typename Path>
3370- inline fs::path make_unc_path (const Path& path)
3370+ inline fs::path make_unc_path (const Path& path) const noexcept
33713371 {
33723372#ifndef WIN32
33733373 return path;
@@ -3384,7 +3384,7 @@ R"x*x*x(<html>
33843384#endif
33853385 }
33863386
3387- inline std::wstring make_target_path (const std::string& target)
3387+ inline std::wstring make_target_path (const std::string& target) const noexcept
33883388 {
33893389 try
33903390 {
@@ -3399,7 +3399,7 @@ R"x*x*x(<html>
33993399 return boost::nowide::widen (target);
34003400 }
34013401
3402- inline fs::path make_real_target_path (const std::string& target)
3402+ inline fs::path make_real_target_path (const std::string& target) const noexcept
34033403 {
34043404 auto target_path = make_target_path (target);
34053405 auto doc_path = boost::nowide::widen (m_option.doc_directory_ );
@@ -3413,7 +3413,7 @@ R"x*x*x(<html>
34133413 return ret;
34143414 }
34153415
3416- inline std::tuple<std::string, fs::path> file_last_wirte_time (const fs::path& file)
3416+ inline std::tuple<std::string, fs::path> file_last_wirte_time (const fs::path& file) const noexcept
34173417 {
34183418 static auto loc_time = [](auto t) -> struct tm *
34193419 {
@@ -3470,7 +3470,7 @@ R"x*x*x(<html>
34703470 }
34713471
34723472 inline std::vector<std::wstring>
3473- format_path_list (const fs::path& path, boost::system::error_code& ec)
3473+ format_path_list (const fs::path& path, boost::system::error_code& ec) const
34743474 {
34753475 fs::directory_iterator end;
34763476 fs::directory_iterator it (path, fs::directory_options::skip_permission_denied, ec);
0 commit comments