| 22 | void Func(ConvertTo ct) { } |
| 23 | |
| 24 | int main() |
| 25 | { |
| 26 | Convertable c; |
| 27 | ConvertTo ct(c); // 直接初始化,通过 |
| 28 | // ConvertTo ct2 = c; // 拷贝构造初始化,编译失败 |
| 29 | ConvertTo ct3 = static_cast<ConvertTo>(c); // 强制转化,通过 |
| 30 | // Func(c); // 拷贝构造初始化,编译失败 |
| 31 | system("pause"); |
| 32 | } |
nothing calls this directly
no outgoing calls
no test coverage detected