From 977be2b0d25f1638ea5466d7efb44913817e1f86 Mon Sep 17 00:00:00 2001 From: meator Date: Thu, 23 Jan 2025 20:06:36 +0100 Subject: [PATCH] unique_impl_ptr: fix bug in operator!= Likely a bad copy paste from impl_ptr. The additional parameter C1 makes it impossible to use this operator without explicitly specifying all its template types, making it less useful. --- spimpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spimpl.h b/spimpl.h index 7dafccf..242b22a 100644 --- a/spimpl.h +++ b/spimpl.h @@ -259,7 +259,7 @@ namespace spimpl { return l.get() == r.get(); } - template + template inline bool operator!=(const unique_impl_ptr& l, const unique_impl_ptr& r) { return !(l == r);