How can i write an unambiguous expression of overloaded functions with different return types?
10 January 2023 at 11:40
I'm trying to set a breakpoint with a condition. Lets say the condition is
condition 1 temp() > 0.0
but there are functions
int temp()
and
float temp()
in the same package. gdb then asks which function is intended (multiple matches). not just once, when the condition is defined, but every time the condition is evaluated. Is it possible to define the function unambiguously, for instance by specifying file and line?
I tried adding the return type the way it was specified in the alternative gdb produced, similar to "temp return int" but that led to an error.