From: "Rafal 'Raf256' Maj" Newsgroups: comp.os.msdos.djgpp Subject: Re: inline Date: 29 Aug 2002 09:39:03 GMT Organization: news.onet.pl Lines: 23 Sender: raf256 AT poczta DOT onet DOT pl@rafal.joint.eu.org Message-ID: References: NNTP-Posting-Host: rafal.joint.eu.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit X-Trace: news.onet.pl 1030613943 7050 62.233.182.179 (29 Aug 2002 09:39:03 GMT) X-Complaints-To: abuse AT onet DOT pl NNTP-Posting-Date: 29 Aug 2002 09:39:03 GMT User-Agent: Xnews/5.03.24 X-Complains-To: admin AT raf256 DOT com 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 in news:Xns927972F5EFEC9raf256com AT 213 DOT 180 DOT 128 DOT 20 >> Inline requires the code to be in the header. Right in the class >> definition itself, actually, if memory serves: btw. with notation is better (and why) class cMonoBmp { [...] inline void PutPx(int x, int y, bool c=1); }; void cMonoBmp::PutPx(int x, int y, bool c=1) { [...] } or class cMonoBmp { [...] inline void PutPx(int x, int y, bool c=1); }; inline void cMonoBmp::PutPx(int x, int y, bool c=1) { [...] } ^^^^^^ I quess the second with both inline attributes ? -- Rafał 'Raf256' Maj http://www.raf256.com