Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!mcvax!kth!draken!tut!santra!hutcs!jaa From: jaa@hutcs.uucp (Jari Alasuvanto) Newsgroups: comp.lang.c++ Subject: inline Keywords: inline members vs. members with implementation in *.h Message-ID: <21404@santra.UUCP> Date: 21 Apr 89 10:53:31 GMT Sender: news@santra.UUCP Reply-To: jaa@hutcs.UUCP (Jari Alasuvanto) Organization: Helsinki University of Technology, Finland Lines: 23 I ran into following while porting software from sun3 into sun386. In both machines I had the designer C++ but different versions. For example: class foo: { int val ; public: foo() ; value() { return val ;} } ; produces a warning for member "value" not being defined as an inline in class when compiled in sun386. My questions is: Should it be defined (according to the book or some other reference) as inlines. At least the libraries we use (OOPS and InterViews) do not define functions like this as inlines which causes a lot warnings. Any ideas which one is right ? Jari Alasuvanto, Helsinki Univ. of Techology, Finland Internet: jaa@hutcs.hut.fi Bitnet: jaa%finhutcs.bitnet host name for hutcs in bitnet is finhutcs tel: +358-0-451 3236 fax: +358-0-465 077