gcc
/Users/lioobayoyo/test/main.cpp: In function `int main()':
/Users/lioobayoyo/test/main.cpp:21: warning: passing 'double' for converting 2 of 'void test(int, int)'
/Users/lioobayoyo/test/main.cpp:22: warning: passing 'double' for converting 1 of 'void test(int, int)'
/Users/lioobayoyo/test/main.cpp:26:
error: call of overloaded 'test(float&, int&)' is ambiguous
/Users/lioobayoyo/test/main.cpp:4: note: candidates are: void test(int, int)
/Users/lioobayoyo/test/main.cpp:9: note: void test(float, float)
/Users/lioobayoyo/test/main.cpp:27:
error: call of overloaded 'test(int&, float&)' is ambiguous
/Users/lioobayoyo/test/main.cpp:4: note: candidates are: void test(int, int)
/Users/lioobayoyo/test/main.cpp:9: note: void test(float, float)
/Users/lioobayoyo/test/main.cpp:29:
error: call of overloaded 'test(double, double)' is ambiguous
/Users/lioobayoyo/test/main.cpp:4: note: candidates are: void test(int, int)
/Users/lioobayoyo/test/main.cpp:9: note: void test(float, float)
Partager