From 2d3590dbdb23c82f1960327ffbd78e778231b9c8 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 13 Oct 2017 23:17:06 +0200 Subject: Pass universal references in Connection::callApi<>; fixed a typo in util.h So that even uncopyable types could be used for parameters; also fixed a typo in util.h that prevented dispatch() from using with multiple argument functions. --- util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util.h') diff --git a/util.h b/util.h index 1f9e3f0b..0c8f3640 100644 --- a/util.h +++ b/util.h @@ -231,7 +231,7 @@ namespace QMatrixClient template Dispatch dispatch(ArgTs&& ... args) { - return Dispatch(std::forward(args)...); + return Dispatch(std::forward(args)...); } // The below enables pretty-printing of enums in logs -- cgit v1.2.3