[Groonga-commit] groonga/grnxx at 5ce8d6c [master] Add a missing assignment operator.

Back to archive index

susumu.yata null+****@clear*****
Wed Jul 30 19:36:51 JST 2014


susumu.yata	2014-07-30 19:36:51 +0900 (Wed, 30 Jul 2014)

  New Revision: 5ce8d6c876f45286ad033479147c87e57389bdd9
  https://github.com/groonga/grnxx/commit/5ce8d6c876f45286ad033479147c87e57389bdd9

  Message:
    Add a missing assignment operator.

  Modified files:
    include/grnxx/array.hpp

  Modified: include/grnxx/array.hpp (+8 -0)
===================================================================
--- include/grnxx/array.hpp    2014-07-30 18:04:05 +0900 (45cb036)
+++ include/grnxx/array.hpp    2014-07-30 19:36:51 +0900 (bc95403)
@@ -140,6 +140,14 @@ class BoolReference {
     }
     return *this;
   }
+  BoolReference operator=(BoolReference rhs) {
+    if (rhs) {
+      *block_ |= mask_;
+    } else {
+      *block_ &= ~mask_;
+    }
+    return *this;
+  }
 
  private:
   uint64_t *block_;
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index