×

Loading...

class boo{ virtual void f()=0; }; class d : public boo { virtual inline f(){cout << "doo::f();" << endl; } }; void main() { d objD; objD.f(); }; // in this case, it compiles and runs. do you think it is inline?

mrviceroy (杀人者Daniel是也)
(#109376@0)
2001-6-22 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: numnum, i have a question: Can i define virtual function as inline? Thanks

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论