bivect: workaround flexible arrays not being standard C++
This is a -pedantic warning from gcc. * src/misc/bitvect.cc, src/misc/bitvect.hh (storage_): Remove. (storage): New method to access past the end of the struct.
This commit is contained in:
parent
52ce449bbc
commit
14570f62d0
2 changed files with 14 additions and 4 deletions
|
|
@ -160,7 +160,7 @@ namespace spot
|
|||
bitvect_array* bva = new(mem) bitvect_array(vectcount, bvsize);
|
||||
// Initialize all the bitvect instances.
|
||||
for (size_t i = 0; i < vectcount; ++i)
|
||||
new(bva->storage_ + i * bvsize) bitvect(bitcount, n);
|
||||
new(bva->storage() + i * bvsize) bitvect(bitcount, n);
|
||||
return bva;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue