You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The binary subtraction operation tp - d is implemented as tp + (-d).
Because the unary minus operator is used, the result is wrong if the underlying representation type is unsigned.
The binary subtraction operation
tp - d
is implemented astp + (-d)
.Because the unary minus operator is used, the result is wrong if the underlying representation type is unsigned.
For instance :
Running this program produces the following output:
Note that the std::chrono from gcc does not exhibit this defect.
The text was updated successfully, but these errors were encountered: