[comp.lang.c++] Constructors vs Initializer Lists?

jima@hplsla.HP.COM (Jim Adcock) (07/11/89)

Should the following compile with and without CONSTRUCTOR defined?
I can't remember reading anywhere about this. [I have an application with
lots of constants where I'd prefer not to have to go through constructors 
at start-up.]

class Trouble
{
public:
  double val1, val2;

#ifdef CONSTRUCTOR
  Trouble(double _val1, double _val2) : val1(_val1), val2(_val2) { };
#endif

};

const Trouble withInitializerList = {1.0, 2.0};

void main(){}