You are viewing a single comment's thread. Return to all comments →
Try to avoid the version using #define. This might lead to unexpected behaviour which will be hard to debug.
E.g.: int i = 0; cout << abs(++i) << endl;
This will print out 2 [!] using the #define version of abs.
Pointer
You are viewing a single comment's thread. Return to all comments →
Try to avoid the version using #define. This might lead to unexpected behaviour which will be hard to debug.
E.g.: int i = 0; cout << abs(++i) << endl;
This will print out 2 [!] using the #define version of abs.