Given two functions, like so
inline V2T<Int16> GS(float x, float y, int xOff, int yOff, Uint8 f = 0x00);
inline V2T<Int16> GS(float x, float y, int xOff, int yOff, int maxW = -1, int maxH = -1, Uint8 f = 0x00);
the overload is obviously ambiguous for cases like GS(float, float, int, int)
Is there any way I can specify a default overload for cases like this? Doesn't have to be compatible with anything but the GNU C++ compiler, as I'm already using several unique conventions.
Ideally, something like
inline V2T<Int16> GS(... , Uint8 f = 0x00) __default;
inline V2T<Int16> GS(... , int maxW = -1, int maxH = -1, Uint8 f = 0x00);
causing the compiler to automatically resolve in favor of the first (__default) function.
All questions I've seen have been oriented towards newbies encountering this error for the first time, so it's possible this has been answered but buried. Thanks in advance!