Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!uunet!island!chris From: chris@island.uu.net (Chris King) Newsgroups: comp.lang.c++ Subject: inline member functions returning a enumerated type Keywords: inline enum Message-ID: <1851@island.uu.net> Date: 23 Jul 90 17:31:47 GMT Organization: Island Graphics, Marin County, California Lines: 36 Hi. I could use some help figuring out a problem I am having with defining a inline member function that returns a enum. I don't understand the compile time error I get when I try to do this. I am using Sun's version of cfront 2.0. Here is a simple test program showing the problem and cfronts output. struct test { enum id { A, B, C }; enum id v; test() { v = A; } inline enum id GetV() { return v; } }; main() { test t; enum id V = t.GetV(); } "TestClass.cc", line 8: error: bad base type: inline enum id Thanks in advance for any help that you can give me. Chris King Island Graphics Corp. {sun,ucbcad,uunet}!island!chris