c-semantics
c-semantics copied to clipboard
Conversions by constructor
e.g. the following program should compile
struct A{
A(int){}
};
void foo(A){}
int main() {
foo(1);
}
The following applies: n4296 8.5/17.6.2 n4296 13.3.1.4