M
martinezfive
Hi,
According to ISO C++ (7.11/2), "An object declared without a
storage-class-specifier at block scope or declared as a function
parameter has automatic storage duration by default."
What about temporary objects used as default function arguments?
If I have:
class A{};
void g( A &b = A() ){}
what is the storage duration of the temporary?
According to ISO C++ (7.11/2), "An object declared without a
storage-class-specifier at block scope or declared as a function
parameter has automatic storage duration by default."
What about temporary objects used as default function arguments?
If I have:
class A{};
void g( A &b = A() ){}
what is the storage duration of the temporary?