fix(3p/nix/libexpr): Remove default & copy constructors for VectorBindings

Paired-With: Luke Granger-Brown <git@lukegb.com>
Paired-With: Vincent Ambo <mail@tazj.in>
Paired-With: Perry Lorier <isomer@tvl.fyi>

Change-Id: Ief2e59d461452ce599abc63f6ebcfa07a7062491
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1161
Tested-by: BuildkiteCI
Reviewed-by: lukegb <lukegb@tvl.fyi>
This commit is contained in:
Vincent Ambo 2020-07-14 00:30:41 +01:00 committed by tazjin
parent d94690b537
commit 6166c9daf2

View file

@ -131,7 +131,6 @@ void BTreeBindings::merge(Bindings& other) {
class VectorBindings : public Bindings {
public:
VectorBindings() {};
VectorBindings(size_t capacity) : attributes_() {
attributes_.reserve(capacity);
};
@ -145,6 +144,8 @@ class VectorBindings : public Bindings {
void merge(Bindings& other) override;
[[deprecated]] virtual std::vector<const Attr*> lexicographicOrder() override;
VectorBindings(VectorBindings&) = delete;
private:
AttributeVector attributes_;
};