[MOAB-dev] commit/MOAB: iulian07: data() is not part of std::vector
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Sep 17 10:14:00 CDT 2013
1 new commit in MOAB:
https://bitbucket.org/fathomteam/moab/commits/1ed90c69c313/
Changeset: 1ed90c69c313
Branch: master
User: iulian07
Date: 2013-09-17 17:12:02
Summary: data() is not part of std::vector
only pgi compiler complained, though
intel and gcc were just fine with it
Affected #: 1 file
diff --git a/test/elem_eval_test.cpp b/test/elem_eval_test.cpp
index 7a9ea49..8150b84 100644
--- a/test/elem_eval_test.cpp
+++ b/test/elem_eval_test.cpp
@@ -133,7 +133,7 @@ void test_linear_hex()
EntityHandle hex;
std::vector<EntityHandle> connect;
std::copy(verts.begin(), verts.end(), std::back_inserter(connect));
- rval = mb.create_element(MBHEX, connect.data(), 8, hex); CHECK_ERR(rval);
+ rval = mb.create_element(MBHEX, &connect[0], 8, 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