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: Sam C. <sc...@bi...> - 2002-04-19 00:23:32
|
Dan Kegel <dk...@ix...> wrote: > /usr/local/include/orbit-1.0/orb/env.h:56: warning: non-static const memb= er > `CORBA_TypeCode_struct > *const {anonymous struct}::tc' in class without a constructor >=20 > What's the story on those -- are they spurious warnings? Yes and no. As far as I'm aware, the warnings are correct. However, it doesn't seem to cause any problems. The code still compiles and seems to work. 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. :) --=20 Sam "Eddie" Couter | mailto:sc...@bi... Debian Developer | mailto:ed...@de... | jabber:sa...@ja... OpenPGP fingerprint: A46B 9BB5 3148 7BEA 1F05 5BD5 8530 03AE DE89 C75C |