c++ - Replace GetInstanceOfClass1()->GetInstanceOfClass2() with extern? -


what happen if "shorten" call:

getinstanceofclass1()->getinstanceofclass2(); 

(where instance of class2 member of class1) extern function declared in class1.cpp:

extern void getinstanceofclass2() {    getinstanceofclass1()->getinstanceofclass2(); } 

will compiler (clang) produce inefficient code? ugly, bad idea actually?


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -