[Rsiena-commits] r244 - pkg/RSienaTest/src/network/layers

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Oct 16 16:03:09 CEST 2013


Author: ortmann
Date: 2013-10-16 16:03:08 +0200 (Wed, 16 Oct 2013)
New Revision: 244

Modified:
   pkg/RSienaTest/src/network/layers/DistanceTwoLayer.cpp
Log:
bugfix:
           check http://gcc.gnu.org/bugs/#cxx%5Frvalbind for further information

Modified: pkg/RSienaTest/src/network/layers/DistanceTwoLayer.cpp
===================================================================
--- pkg/RSienaTest/src/network/layers/DistanceTwoLayer.cpp	2013-09-17 16:05:34 UTC (rev 243)
+++ pkg/RSienaTest/src/network/layers/DistanceTwoLayer.cpp	2013-10-16 14:03:08 UTC (rev 244)
@@ -158,10 +158,10 @@
 	if (ego == alter || rNetwork.hasEdge(alter, ego)) {
 		return;
 	}
-	for (UnionTieIterator iter(
-			UnionTieIterator(rNetwork.outTies(ego), rNetwork.inTies(ego)),
-			UnionTieIterator(rNetwork.outTies(alter), rNetwork.inTies(alter)),
-			ego, alter); iter.valid(); iter.next()) {
+	UnionTieIterator egoIter(rNetwork.outTies(ego), rNetwork.inTies(ego));
+	UnionTieIterator alterIter(rNetwork.outTies(alter), rNetwork.inTies(alter));
+	for (UnionTieIterator iter(egoIter, alterIter, ego, alter); iter.valid();
+			iter.next()) {
 		int curNeighbor = iter.actor();
 		// check whether the current neighbor is ego or alter itself
 		if (curNeighbor != ego && curNeighbor != alter) {



More information about the Rsiena-commits mailing list