guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

230/376: Bindings: Remove copy constructor


From: Ludovic Courtès
Subject: 230/376: Bindings: Remove copy constructor
Date: Wed, 28 Jan 2015 22:05:15 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit 0ed1b924be879bb27ba5cdefdb96e26519bea40a
Author: Eelco Dolstra <address@hidden>
Date:   Wed Sep 24 15:29:05 2014 +0200

    Bindings: Remove copy constructor
---
 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 ed572b4..38d7377 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;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]