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
Post a Comment