I use a function which use 2 reference parameters to return values, only one of this value interess me. Is there a proper way to do it in one line.
I'll explain myself with the code
Function code
void Limits (double& min, double &max)
{
min = MIN;
max = MAX;
}
using the function
double min;
double unused;
Limits(min, unused);
// using myDouble but not unused
What i would like to write is something like
double min;
Limits(min, double());
I can't find a way without previously properly declare the object. Is there an elegant solution?
I can't modify the function.