From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: inline Date: 29 Aug 2002 08:43:28 GMT Organization: Aachen University of Technology (RWTH) Lines: 22 Message-ID: References: NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1030610608 14577 137.226.32.75 (29 Aug 2002 08:43:28 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 29 Aug 2002 08:43:28 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Rafal 'Raf256' Maj wrote: > Hi, > I have project with several files. When class is in .h (declaration) and in > .cpp (definition) - then I can not use inline methods. Right, you can't. Get out your C++ textbook again and read how inline is supposed to be used. Inline requires the code to be in the header. Right in the class definition itself, actually, if memory serves: > --- test.h --- > class cTest { > public : > inline void fun() { /* code here */ }; > }; -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.