[MOAB-dev] commit/MOAB: iulian07: std::vector.data() again

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Tue Sep 17 10:28:38 CDT 2013


1 new commit in MOAB:

https://bitbucket.org/fathomteam/moab/commits/ee828403147d/
Changeset:   ee828403147d
Branch:      master
User:        iulian07
Date:        2013-09-17 17:27:50
Summary:     std::vector.data() again
missed one :(

Affected #:  1 file

diff --git a/test/elem_eval_test.cpp b/test/elem_eval_test.cpp
index 8150b84..a5907fd 100644
--- a/test/elem_eval_test.cpp
+++ b/test/elem_eval_test.cpp
@@ -150,7 +150,7 @@ void test_quadratic_hex()
   EntityHandle hex;
   std::vector<EntityHandle> connect;
   std::copy(verts.begin(), verts.end(), std::back_inserter(connect));
-  rval = mb.create_element(MBHEX, connect.data(), 27, hex); CHECK_ERR(rval);
+  rval = mb.create_element(MBHEX, &connect[0], 27, hex); CHECK_ERR(rval);
   
   ElemEvaluator ee(&mb, hex, 0);
   ee.set_tag_handle(0, 0);

Repository URL: https://bitbucket.org/fathomteam/moab/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.


More information about the moab-dev mailing list