I am using the Apple LLVM 4.2 compiler to compile this code in C ++. I overloaded a member function with various combinations of tuples, and I believe that I find one of them correctly, but the compiler finds ambiguity. In essence, I am trying to call method (1) below, but the compiler finds method (2) also acceptable / compatible. Why is this? I have C ++ 11 flags enabled.
enum class Enum1 { ... } enum class Enum2 { ... } enum class Enum3 { ... } enum class Enum4 { ... } void myMethod() { Enum1 e1; Enum2 e2; Enum3 e3; doSomething({e1,e2,e3});
source share