2 ms·
In that case, is a compiler allowed to instantiate both ThrowOnError objects before calling either of the C functions?
by nitrogen 13y ago
In that case, is a compiler allowed to instantiate both ThrowOnError objects before calling either of the C functions?
- huhtenberg 13y agoNo. Overloaded operators act like functions and functions are sequence points.
- MaulingMonkey 13y agoFunctions have a sequence point that insists their arguments are evaluated before the function is called, but having both ThrowOnError objects constructed before calling any of the other functions would still satisfy that constraint.