GCC's C Extensions gives us zero and variable length arrays.

Is it possible to get variable length arrays as members ("by-value")
in C++ classes aswell, something like:

class string255
{
private:
  char size;
  char val[size];
}:

I guess it all boils downto how C++ allocates a class.

Can we give gcc hints about this somehow?

/Nordlöw
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to