Make Writable<T>::operator= return its RHS, as required
authorPhil Miller <mille121@illinois.edu>
Tue, 21 Jul 2009 01:55:47 +0000 (20:55 -0500)
committerPhil Miller <mille121@illinois.edu>
Thu, 10 Dec 2009 22:22:59 +0000 (16:22 -0600)
src/libs/ck-libs/multiphaseSharedArrays/msa-distArray.h

index 128ee46338f4955cc1201bc4789ed65fb7863042..ad411c9e33087601d4230b9bdd080a1925d5c34f 100644 (file)
@@ -16,7 +16,7 @@ class Writable
     
 public:
     Writable(ENTRY &e_) : e(e_) {}
-    inline const ENTRY& operator= (const ENTRY& rhs) { e = rhs; }
+    inline const ENTRY& operator= (const ENTRY& rhs) { e = rhs; return rhs; }
 };
 
 template <typename ENTRY, class ENTRY_OPS_CLASS>