M
MathStuf
I have a logging function with multiple calling functions that make it
more standard with less coding, but I am getting a weird mis-match
error that outputs the following:
error: call of overloaded `LogSetVar(const char[8], unsigned int&,
const char[5], unsigned int&, const String&)' is ambiguous
note: candidates are: void LogSetVar(const char*, unsigned int, const
char*, long int, const char*) <near match>
note: void LogSetVar(const char*, unsigned int, const
char*, const char*, const char*) <near match>
note: void LogSetVar(const char*, unsigned int, const
char*, long int, const char*, const char*) <near match>
note: void LogSetVar(const char*, unsigned int, const
char*, unsigned int, unsigned int, const char*) <near match>
note: void LogSetVar(const char*, unsigned int, const
char*, unsigned int, bool, const char*) <near match>
My question is why isn't the first one chosen (String has a const
char* operator defined) because all the rest, as I see, aren't close
to matching (last 3 by number, 2nd by type)?
more standard with less coding, but I am getting a weird mis-match
error that outputs the following:
error: call of overloaded `LogSetVar(const char[8], unsigned int&,
const char[5], unsigned int&, const String&)' is ambiguous
note: candidates are: void LogSetVar(const char*, unsigned int, const
char*, long int, const char*) <near match>
note: void LogSetVar(const char*, unsigned int, const
char*, const char*, const char*) <near match>
note: void LogSetVar(const char*, unsigned int, const
char*, long int, const char*, const char*) <near match>
note: void LogSetVar(const char*, unsigned int, const
char*, unsigned int, unsigned int, const char*) <near match>
note: void LogSetVar(const char*, unsigned int, const
char*, unsigned int, bool, const char*) <near match>
My question is why isn't the first one chosen (String has a const
char* operator defined) because all the rest, as I see, aren't close
to matching (last 3 by number, 2nd by type)?