From 0ed1b924be879bb27ba5cdefdb96e26519bea40a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 24 Sep 2014 15:29:05 +0200 Subject: Bindings: Remove copy constructor --- src/libexpr/eval.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libexpr/eval.hh') diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index ed572b4291..38d7377256 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -43,11 +43,12 @@ private: Attr attrs[0]; Bindings(uint32_t capacity) : size_(0), capacity(capacity) { } + Bindings(const Bindings & bindings) = delete; public: - size_t size() { return size_; } + size_t size() const { return size_; } - bool empty() { return !size_; } + bool empty() const { return !size_; } typedef Attr * iterator; -- cgit 1.4.1