Mathias Fröhlich wrote:

That is something which is, I believe, missinterpreted by some compilers.
You have a constant value and as such it cannot change. Initial assignment is a change and so you cannot assign that one.
Your compiler seems to allow such an assignment for static members, but not for nonstatic members.

It can be done the following way:

In the header file:

class FOO {
private:

  const char *ptr;
}


In the cpp file:

const char *FOO::ptr = "dummy text";



Erik

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to