3 ms·
If the variable is numeric, and const or constexpr, and you have -O1 or higher enabled, then the compiler will optimize it away. I don’t think static would add
by elteto 3y ago
If the variable is numeric, and const or constexpr, and you have -O1 or higher enabled, then the compiler will optimize it away.
I don’t think static would add anything under these conditions.