diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-10-04 11:05:10 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-10-04 11:05:10 +0200 |
commit | c16813c5209f0421ec773a98cf935a2eb2ea3d7c (patch) | |
tree | 29af3cff94a76fafea19d93f0e47c1c37b2ae24f /lib/util.h | |
parent | 73c1c8747b0c00524239724bb7cf00776448c5c7 (diff) | |
download | libquotient-c16813c5209f0421ec773a98cf935a2eb2ea3d7c.tar.gz libquotient-c16813c5209f0421ec773a98cf935a2eb2ea3d7c.zip |
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.
Diffstat (limited to 'lib/util.h')
-rw-r--r-- | lib/util.h | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -219,18 +219,6 @@ template <typename FnT, int ArgN = 0> using fn_arg_t = std::tuple_element_t<ArgN, typename function_traits<FnT>::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 <typename FnT> -inline auto wrap_in_function(FnT&& f) -{ - return typename function_traits<FnT>::function_type(std::forward<FnT>(f)); -} - inline constexpr auto operator"" _ls(const char* s, std::size_t size) { return QLatin1String(s, int(size)); |