From 239b3ab10b460da34c490a7e06a21c984e21ffb6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 26 Nov 2021 20:21:12 +0000 Subject: Enable all Jason Turner recommended warnings --- lib/ptr.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ptr.hpp') diff --git a/lib/ptr.hpp b/lib/ptr.hpp index b92b63e..0b00285 100644 --- a/lib/ptr.hpp +++ b/lib/ptr.hpp @@ -16,9 +16,9 @@ public: template static auto - create(Obj * (*factory)(Args...), void (*deleter)(Obj *), Params &&... params) + create(Obj * (*factory)(Params...), void (*deleter)(Obj *), Args &&... args) { - return wrapped_ptr {factory(std::forward(params)...), deleter}; + return wrapped_ptr {factory(std::forward(args)...), deleter}; } }; -- cgit v1.2.3