Martin Kalbfuss wrote: Fixed quoting
You tried to use automatic initialization of variable sized schema. Unfortunatly, it works only simplest cases (basically the schema parameters must be constants).
There is a bug in the compiler: there should be reasonable error message instead of the above...
But the same happens if I use
new( table, map. width , map. height );
instead. Isn't it very useless if I can only use constants for dynamic memory?
You can allocate variable sized items unsing new. Simply you can not request automatic initialization of such items.