#include <cstdio> class Foo { public: Foo() = default; }; class init { public: init(int z, Foo f) { printf("Call init"); } init(int z, int d, Foo f) { printf("Call init 2"); } }; int main(int argc, const char *argv[]) { Foo f; init i {2, f}; init j {4,2, f}; return 0; }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15129 | zachwhaley | Add practice directory |