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
|