From 6819823f1f138c6dc10d466d54e85ced242b1a15 Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Wed, 15 Feb 2017 11:57:17 -0500 Subject: [PATCH] minor refactor of deprecated user_load_function_t --- include/libtorrent/session_handle.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/libtorrent/session_handle.hpp b/include/libtorrent/session_handle.hpp index ce0f7ff56..52f5ed2a8 100644 --- a/include/libtorrent/session_handle.hpp +++ b/include/libtorrent/session_handle.hpp @@ -63,11 +63,10 @@ namespace libtorrent #ifndef TORRENT_NO_DEPRECATE struct session_status; + using user_load_function_t = std::function&, error_code&)>; #endif - typedef std::function& - , error_code&)> user_load_function_t; - struct TORRENT_EXPORT session_handle { session_handle() : m_impl(nullptr) {}