¡@

Home 

c++ Programming Glossary: printstuff

Templates: template function not playing well with class's template member function

http://stackoverflow.com/questions/1682844/templates-template-function-not-playing-well-with-classs-template-member-funct

tries to evaluate a.getResult B test.cpp In function 'void printStuff const A ' test.cpp 6 error expected primary expression before.. code is #include iostream template class A class B void printStuff const A a size_t value a.getResult B std cout value std endl.. sizeof someInstance int main int char Firstclass foo printStuff Firstclass short int foo printStuff Firstclass double foo std..

Can I call a base class's virtual function if I'm overriding it?

http://stackoverflow.com/questions/672373/can-i-call-a-base-classs-virtual-function-if-im-overriding-it

Bar set up like this class Foo public int x virtual void printStuff std cout x std endl class Bar public Foo public int y void.. std cout x std endl class Bar public Foo public int y void printStuff I would like to call Foo.printStuff here... std cout y std.. Foo public int y void printStuff I would like to call Foo.printStuff here... std cout y std endl As annotated in the code I'd like..