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 -05:00

回到话题: numnum, i have a question: Can i define virtual function as inline? Thanks

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=109376