mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-28 03:04:30 +00:00
use _cpp_lib_move_only_function to check for std::move_only_function
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user