next up previous
Next: Pointers to Pointers Up: Parsing Problems Previous: Fails to parse

Initializer lists for constructors

struct Point {
  Point(){}
  Point(int xval, int yval):x(xval),y(yval){}
  int x;
  int y;
};

where the x(xval) is rejected. Maybe a problem just for builtins?



send comments or suggestions to J.Poole@cs.ucl.ac.uk

Click here for more information on UCL-CS.