diff --git a/lib/smallvector.h b/lib/smallvector.h index 42c45a173..b09a016dd 100644 --- a/lib/smallvector.h +++ b/lib/smallvector.h @@ -41,6 +41,17 @@ struct TaggedAllocator : std::allocator TaggedAllocator(Ts&&... ts) : std::allocator(std::forward(ts)...) {} + + template + // cppcheck-suppress noExplicitConstructor + // NOLINTNEXTLINE(google-explicit-constructor) + TaggedAllocator(const TaggedAllocator /*unused*/) {} + + template + struct rebind + { + using other = TaggedAllocator; + }; }; template