[Gridflow-cvs] [svn] commit: r6394 - /trunk/src/classes3.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Oct 4 16:47:56 EDT 2010


Author: matju
Date: Mon Oct  4 16:47:53 2010
New Revision: 6394

Log:
use &[0] instead of .data() for bw-compat with older std::vector

Modified:
    trunk/src/classes3.cxx

Modified: trunk/src/classes3.cxx
==============================================================================
--- trunk/src/classes3.cxx (original)
+++ trunk/src/classes3.cxx Mon Oct  4 16:47:53 2010
@@ -1490,7 +1490,7 @@
 } GRID_FINISH {
 	vector<T> &tmp2 = *(vector<T> *)tmp;
 	GridOut out(this,0,Dim(tmp2.size()),in.nt);
-	out.send(tmp2.size(),tmp2.data());
+	out.send(tmp2.size(),&tmp2[0]);
 	delete (vector<T> *)tmp;
 } GRID_END
 GRID_INPUT(1,r) {} GRID_END



More information about the Gridflow-cvs mailing list