| delorie.com/archives/browse.cgi | search |
| From: | "Rafal 'Raf256' Maj" <rafal AT raf256 DOT com> |
| 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: | <Xns927975D51B6A0raf256com@213.180.128.20> |
| References: | <Xns927961B9FE2B4raf256com AT 213 DOT 180 DOT 128 DOT 20> <akkmrg$e7h$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <Xns927972F5EFEC9raf256com AT 213 DOT 180 DOT 128 DOT 20> |
| NNTP-Posting-Host: | rafal.joint.eu.org |
| Mime-Version: | 1.0 |
| 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" <rafal AT raf256 DOT com> 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |