]> AND Private Git Repository - loba.git/commitdiff
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Assign value at declaration.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 23 Feb 2011 13:32:35 +0000 (14:32 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 23 Feb 2011 13:32:50 +0000 (14:32 +0100)
communicator.cpp

index 7abdf763a175aded0947ef48f88cdccb9dfe8b95..bd0cb7b7a6ba0db14dd2a5741ad53994ae7a5f3e 100644 (file)
@@ -63,9 +63,9 @@ msg_comm_t communicator::real_send(const char* dest, message* msg)
 
 void communicator::real_flush(sent_comm_type& sent_comm, bool wait)
 {
 
 void communicator::real_flush(sent_comm_type& sent_comm, bool wait)
 {
-    sent_comm_type::iterator bound;
-    bound = std::remove_if(sent_comm.begin(), sent_comm.end(),
-                           comm_test_n_destroy);
+    sent_comm_type::iterator bound =
+        std::remove_if(sent_comm.begin(), sent_comm.end(),
+                       comm_test_n_destroy);
     sent_comm.erase(bound, sent_comm.end());
     if (wait && !sent_comm.empty()) {
         size_t size = sent_comm.size();
     sent_comm.erase(bound, sent_comm.end());
     if (wait && !sent_comm.empty()) {
         size_t size = sent_comm.size();