I have a static member function which is merely syntactic sugar for me and I would like its body to appear in place of going through the motions of passing parameters to it. Will
inline static foo(int a) {return a & 0x00000040;}
be inlined just as it would if it was inline without being static?
The compiler chooses what it wants to do so we can’t say what it will choose to do. That said, the function being
staticwill not prevent it from being inlined;staticfunctions are basically free functions with a different naming style and access to the class’ private members.