smallvector.h: reverted bogus noExplicitConstructor fix and suppress the warning (#4016)

This commit is contained in:
Oliver Stöneberg 2022-04-13 20:50:04 +02:00 committed by GitHub
parent 8203c74c40
commit 16e90ed3e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,8 @@ template<class T, std::size_t N>
struct TaggedAllocator : std::allocator<T>
{
template<class ... Ts>
explicit TaggedAllocator(Ts&&... ts)
// cppcheck-suppress noExplicitConstructor
TaggedAllocator(Ts&&... ts)
: std::allocator<T>(std::forward<Ts>(ts)...)
{}
};