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

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

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