diff --git a/Base/Messages.h b/Base/Messages.h index e1ea6bd..fbe1792 100644 --- a/Base/Messages.h +++ b/Base/Messages.h @@ -6,6 +6,7 @@ #include #include +// Signature 参数不能为移动语义 namespace Older { struct NotifyServerChan { using Signature = void(const boost::beast::http::request &); @@ -16,7 +17,7 @@ using HttpRequest = boost::beast::http::request using RequestHandler = std::function; struct RegisterUrlHandler { - using Signature = void(std::string_view url, RequestHandler &&handler); + using Signature = void(std::string_view url, RequestHandler handler); }; } // namespace Older diff --git a/resources/build.sh b/resources/build.sh index e0a9125..07e2415 100755 --- a/resources/build.sh +++ b/resources/build.sh @@ -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 }