TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: VADIM DAVYDOFF
from: JAVIER KOHEN
date: 1997-07-22 01:04:00
subject: Classes [2/2]

On 04-Jul-97, Vadim Davydoff wrote to Javier Kohen about Classes              
 
     [2/2].
 JK>>     buttons = mouse.getButtons();
 JK>>         cout << "Tiene: " << buttons << " botones.\n";
 VD> It seems to me, You ought to make a Mouse::getButtons () inline and put
I had a problem when tryin to:
inline int Mouse::getbuttons(void) const {}
The linker won't recognize it... but if I removed inline or const, it'll
work fine. Finally, I removed inline, because getButtons() is called in
many const members, so the compiler will complain against it.
Javier Kohen  [The_Crusher] http://jkohen.base.org
... Denebian slime devil þ a Tribble built to Klingon specs
-!- CrusherTag 0.3.2.
--- Terminate 4.00/Pro
4:900/748.3)
---------------
* Origin: The King of The Ring BBS þ +54-1-OFF-LINE þ TLD 0 - 7

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.