You can not. This leads to an unexpected implicit conversion.
However, unexpected implicit conversion is not allowed, and the compiler will reject your program. This, however, does not prevent the compiler from choosing or considering it. Example
void f(Foo); void f(std::vector<Bar>); int main() {
source share