Re: [orbitcpp-list] orbit-1.0/orb/env.h:51: warning: non-static const member in class without a cons
Status: Beta
Brought to you by:
philipd
From: <bb...@ya...> - 2002-04-19 02:02:37
|
My take... tc is a member pointer inside the object being constructed. However it is * const. This means you can't change where the pointer points to after it is initialized. But because the containing object has no constructor, there's no initialization which says what tc should point to. In C++ there would be no way to make use of the tc member because when the object is constructed tc points somewhere random, but there's no legal way to change its value (in C++). In this case I assume the value gets set elsewhere in a C routine which has a different concept of * const. --- Sam Couter <sc...@bi...> wrote: > > The warnings come about because C++ is only mostly compatible with C, > not fully compatible, and the ORBit header files are just C. I'm not > sure what the full implications are of having non-static const > members > in a class without a constructor, but we have them. :) http://messenger.yahoo.com.au - Yahoo! Messenger - A great way to communicate long-distance for FREE! |