Skip to content
Snippets Groups Projects
Commit 12148dc7 authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Add check for ElementLink optimization

parent 37e4cab3
No related branches found
No related tags found
No related merge requests found
...@@ -672,6 +672,9 @@ void test3 (SGTest::TestStore& store) ...@@ -672,6 +672,9 @@ void test3 (SGTest::TestStore& store)
TestStore::sgkey_t sgkey = store.stringToKey ("foocont3", fooclid); TestStore::sgkey_t sgkey = store.stringToKey ("foocont3", fooclid);
//Add check to see if Element link optimized for std::vector expansion
static_assert(std::is_nothrow_move_constructible<ElementLink<FooCont>>::value);
FooCont* foocont3 = new FooCont; FooCont* foocont3 = new FooCont;
for (int i=0; i < 4; i++) for (int i=0; i < 4; i++)
foocont3->push_back (new Foo(i+200)); foocont3->push_back (new Foo(i+200));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment