#include <iostream>
using namespace std;
class CAgs {
public:
CAgs (int ar, bool isReady) { cout << "first"; }
CAgs (int ar, const char* options[][2] = NULL) { cout << "sec"; }
};
int main() {
CAgs obj(10,0);
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKY2xhc3MgQ0FncyB7CiAgICBwdWJsaWM6CgogICAgQ0FncyAoaW50IGFyLCBib29sIGlzUmVhZHkpIHsgY291dCA8PCAiZmlyc3QiOyB9CiAgICBDQWdzIChpbnQgYXIsIGNvbnN0IGNoYXIqIG9wdGlvbnNbXVsyXSA9IE5VTEwpIHsgY291dCA8PCAic2VjIjsgfQp9OwoKaW50IG1haW4oKSB7CiAgIENBZ3Mgb2JqKDEwLDApOwp9
prog.cpp: In function ‘int main()’:
prog.cpp:12:17: error: call of overloaded ‘CAgs(int, int)’ is ambiguous
CAgs obj(10,0);
^
prog.cpp:12:17: note: candidates are:
prog.cpp:8:5: note: CAgs::CAgs(int, const char* (*)[2])
CAgs (int ar, const char* options[][2] = NULL) { cout << "sec"; }
^
prog.cpp:7:5: note: CAgs::CAgs(int, bool)
CAgs (int ar, bool isReady) { cout << "first"; }
^