diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-09-24 15:29:05 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-09-24 15:29:05 +0200 |
commit | 0ed1b924be879bb27ba5cdefdb96e26519bea40a (patch) | |
tree | dc17f8b4a9187d99075421e92e4e8e27a6d2a886 | |
parent | e83a027e00f1f5d729e78f3b4c94daa97704d065 (diff) |
Bindings: Remove copy constructor
-rw-r--r-- | src/libexpr/eval.hh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index ed572b429..38d737725 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; |