use _cpp_lib_move_only_function to check for std::move_only_function

This commit is contained in:
orignal
2026-07-20 20:56:15 -04:00
parent e7f0c34309
commit 005673922f
+1 -1
View File
@@ -121,7 +121,7 @@ namespace stream
};
};
#if __cplusplus >= 202302L // C++23
#ifdef __cpp_lib_move_only_function // with C++23
typedef std::move_only_function<void (const boost::system::error_code& ecode)> SendHandler;
#else
typedef std::function<void (const boost::system::error_code& ecode)> SendHandler;