D
dot
Let say we have a function:
class C
{
volatile A a;
public:
A f() const;
};
A C::f()
{
volatile scoped_mutex m;
return a;
}
Which of the following operations shall take place first:
* copy-construction of a
* destruction of m
Thanks,
Ben
class C
{
volatile A a;
public:
A f() const;
};
A C::f()
{
volatile scoped_mutex m;
return a;
}
Which of the following operations shall take place first:
* copy-construction of a
* destruction of m
Thanks,
Ben