Win7-64 bits cygwin g++ -std=gnu++11 (4.8.3)
In the fragment below the variable 'partition' must be initialized after the call to slipInit. The compiler complains (oh so bitterly) unless I initialize partition in the definition (after the ':'). I've just started using gnu++11 and so this is an unfortunate surprise. Are there any easy workarounds or must I create another method to do the initialization?
StringPartition::StringPartition(vector<string*>* vec, long debugFlags)
: vec(*vec)
, debugFlags(debugFlags) {
SlipCellBase::slipInit(SLIPALLOCATION, SLIPALLOCATION);
partition = * new SlipHeader();
}; // StringPartition::StringPartition()
Error Message
error: uninitialized reference member 'StringPartition::partition' [-fpermissive]