Remove deprecated unary/binary_function. - #191
Conversation
|
BTW, I have a question about the object functions implemented in Take Casting both |
|
Given
AFAIU, the fractional part remains the same and constant, regardless if present before or after the addition, until it is discarded. So, both seem to be equivalent, unless you are thinking of a different case? I think, generally, explicit conversion of operands makes the arithmetic cleaner/safer (e.g. avoids /cc @stefanseefeld p.s. Most of the times I look into the template-based arithmetic expressions in GIL, trying to analyse them in terms of conversions, promotions and ranks, I quickly get confused and lost. But, this is one of the important core topics that we need to clean up! (also to clear the flood of compilation warnings). |
|
Thanks for the fast reply. Actually I want to implement flatfield correction, so it's more the
But this is more tricky than I had thought! Opening a separate issue to continue discussing that. |
|
That case 1. is exactly the division issue I was writing about in my earlier comment. |
|
@sdebionne Thank you |
std::unary_functionandstd::binary_functionare deprecated in C++11 and removed in C++17. I think they are safe to remove since C++11 is required anyway.