From 16e90ed3e2a2e8cfc01b8d6d59e694c96a0383af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Wed, 13 Apr 2022 20:50:04 +0200 Subject: [PATCH] smallvector.h: reverted bogus noExplicitConstructor fix and suppress the warning (#4016) --- lib/smallvector.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/smallvector.h b/lib/smallvector.h index 49d0c7be1..ed70e14c3 100644 --- a/lib/smallvector.h +++ b/lib/smallvector.h @@ -35,7 +35,8 @@ template struct TaggedAllocator : std::allocator { template - explicit TaggedAllocator(Ts&&... ts) + // cppcheck-suppress noExplicitConstructor + TaggedAllocator(Ts&&... ts) : std::allocator(std::forward(ts)...) {} };