From c16813c5209f0421ec773a98cf935a2eb2ea3d7c Mon Sep 17 00:00:00 2001 From: Alexey Rusakov Date: Mon, 4 Oct 2021 11:05:10 +0200 Subject: Move away wrap_in_function to private interface This has always been merely a workaround to enable connectUntil/connectSingleShot and was never intended to be used elsewhere, let alone in clients. --- lib/util.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lib/util.h') diff --git a/lib/util.h b/lib/util.h index 5bfe6841..c6171b91 100644 --- a/lib/util.h +++ b/lib/util.h @@ -219,18 +219,6 @@ template using fn_arg_t = std::tuple_element_t::arg_types>; -// TODO: get rid of it as soon as Apple Clang gets proper deduction guides -// for std::function<> -// ...or consider using QtPrivate magic used by QObject::connect() -// since wrap_in_function() is actually made for qt_connection_util.h -// ...for inspiration, also check a possible std::not_fn implementation at -// https://en.cppreference.com/w/cpp/utility/functional/not_fn -template -inline auto wrap_in_function(FnT&& f) -{ - return typename function_traits::function_type(std::forward(f)); -} - inline constexpr auto operator"" _ls(const char* s, std::size_t size) { return QLatin1String(s, int(size)); -- cgit v1.2.3