reduce warning.
Some checks failed
Deploy / Build (push) Failing after 36s

This commit is contained in:
amass 2025-06-03 15:33:23 +08:00
parent 91ba66f138
commit d881848fa4
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@
#include <boost/beast/http/string_body.hpp>
#include <boost/callable_traits/return_type.hpp>
// Signature 参数不能为移动语义
namespace Older {
struct NotifyServerChan {
using Signature = void(const boost::beast::http::request<boost::beast::http::string_body> &);
@ -16,7 +17,7 @@ using HttpRequest = boost::beast::http::request<boost::beast::http::string_body>
using RequestHandler = std::function<void(HttpSession &, const HttpRequest &, const boost::urls::matches &)>;
struct RegisterUrlHandler {
using Signature = void(std::string_view url, RequestHandler &&handler);
using Signature = void(std::string_view url, RequestHandler handler);
};
} // namespace Older

View File

@ -18,7 +18,7 @@ function cmake_scan() {
cd ${build_path}
${cmake_exe} -G Ninja -S ${base_path} -B ${build_path} \
-DCMAKE_BUILD_TYPE=Debug \
-DMbedTLS_DIR=${libraries_root}/mbedtls-3.6.3/lib/cmake/MbedTLS \
-DMbedTLS_DIR=${libraries_root}/mbedtls-3.6.3.1/lib/cmake/MbedTLS \
-Dnng_DIR=${libraries_root}/nng-1.10.1/lib/cmake/nng \
-DBOOST_ROOT=${libraries_root}/boost_1_88_0
}