Path: utzoo!attcan!uunet!samsung!sol.ctr.columbia.edu!emory!gatech!bloom-beacon!eru!hagbard!sunic!news.funet.fi!funic!santra!santra!ahuttune From: ahuttune@niksula.hut.fi (Ari Juhani Huttunen) Newsgroups: comp.lang.c++ Subject: Constant member variables in TC++ Message-ID: Date: 11 Nov 90 17:07:21 GMT Sender: news@santra.uucp (Cnews - USENET news system) Organization: Helsinki University of Technology, Finland Lines: 20 An example class: class X { const int const_int; }; Gives a warning: constant field not initialized. class X { const int const_int = 5; }; Gives an error: can't initialize a field. So??????? -- ___ ___ ___ ___ ___ ___ ___ ___ ___ __I I__I I__I I__I I__I I__I I__I I__I I__I I Thank you Ari Huttunen (ahuttune@niksula.hut.fi) I for not smoking! ____________________________________________I