Add assert to check memory allocation
This commit is contained in:
parent
0205cbc578
commit
d8d9ac8686
@ -43,6 +43,7 @@ class RasterGrid
|
||||
xdim = _xdim;
|
||||
ydim = _ydim;
|
||||
_data.reserve(ydim * xdim);
|
||||
BOOST_ASSERT(_data.capacity() >= ydim * xdim);
|
||||
|
||||
storage::io::FileReader file_reader(filepath, storage::io::FileReader::HasNoFingerprint);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user