Skip to content
Snippets Groups Projects
Commit ae1a8eff authored by Markus Blatt's avatar Markus Blatt
Browse files

Added assertion just to be sure.

[[Imported from SVN: r5739]]
parent 534a0753
No related branches found
No related tags found
No related merge requests found
......@@ -509,6 +509,10 @@ namespace Dune
char* start = chunks_->memory_;
char* last = &start[elements*alignedSize];
Reference* ref = new (start) (Reference);
// grow is only called if head==0,
assert(!head_);
head_ = ref;
for(char* element=start+alignedSize; element<last; element=element+alignedSize) {
......
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