   Constructor initializers / header files
  I'm aware of constructor intializers, and what they do.For example:   class Foo {   Foo(int a) {};};class Bar:public Foo {   Bar(int a):Foo(a) {};}; And all is well. Except that now my constructor has to be implemented in the header file. I like to do that in the .cpp, as all my classes that do not have initializers do. Having to have template class implementations in the header is bad enough(but I know the reason why it must be so).Is there any way to do that? I've tried different syntaxes, to no avail. Not to mention searching the forums.[edited by - Outworlder on July 31, 2003 9:54:28 PM][edited by - Outworlder on July 31, 2003 9:55:24 PM]
//headerstruct Foo   {   Foo();   int crap;   };//sourceFoo::Foo() : crap(0)   {   };  You know, I was pretty sure I had tried that already. I guess not.Thanks! 