J
Jarek Blakarz
Hi
I can see that when passing by value a temporary object no copy constructor is
called.
Is it compiler's optimization ?
Is the object directly constructed inside "fun" function in the below program ?
thanks for answer.
class Human {};
void fun(Human h) {}
int main(void)
{
fun(Human());
return 0;
}
I can see that when passing by value a temporary object no copy constructor is
called.
Is it compiler's optimization ?
Is the object directly constructed inside "fun" function in the below program ?
thanks for answer.
class Human {};
void fun(Human h) {}
int main(void)
{
fun(Human());
return 0;
}