MISRAC++2023-4.1.2_f (C++ only)
In this section:
Synopsis
(Advisory) Deprecated features should not be used
Enabled by default
No
Severity/Certainty
Low/Low

Full description
Deprecated feature found [depr.func.adaptor.binding]
Coding standards
This check does not correspond to any coding standard rules.
Code examples
The following code example fails the check and will give a warning:
#include <functional>
std::multiplies<int>::first_argument_type example(float v){
std::multiplies<int>::first_argument_type x = v;
return x;
}
The following code example passes the check and will not give a warning about this issue:
#include <functional>
int example(float v){
int x = v;
return x;
}