]> sourceware.org Git - systemtap.git/blobdiff - bpf-bitset.h
+ configury refresh for last stap-prep Makefile.am tweak
[systemtap.git] / bpf-bitset.h
index db4eb08460531d7cf0aa874ee1a4c2e91d6999c1..4b9402a5112acd6fb1b4013ad8d2e8398ead1879 100644 (file)
@@ -115,6 +115,7 @@ public:
   static const size_t npos = -1;
 
   set1_const_ref(word_t *d, size_t w) : data(d), words(w) { }
+  set1_const_ref(const set1_const_ref &o) : data(o.data), words(o.words) { }
 
   bool operator!= (const set1_const_ref &o) const
   {
@@ -149,6 +150,7 @@ private:
 
 public:
   set1_ref(size_t *d, size_t w) : set1_const_ref(d, w) { }
+  set1_ref(const set1_ref &o) : set1_const_ref(o.data, o.words) { }
 
   bit_ref operator[] (size_t i)
   {
@@ -238,6 +240,7 @@ public:
     if (n1 != o.n1 || w2 != o.w2)
       throw_out_of_range("bpf::bitset::set2::operator=");
     memcpy(data, o.data, n1 * w2 * sizeof(word_t));
+    return *this;
   }
 
   set1_ref operator[] (size_t i)
This page took 0.024503 seconds and 5 git commands to generate.