10 Jul
2009
10 Jul
'09
9:04 a.m.
2009/7/10 Hicham Mouline
Hello
Copying structs by default means memberwise copy. If I have a struct S { shared_ptr<T1> ptr1; shared_ptr<T2> ptr2; shared_ptr<T3> ptr3; };
and i have 2 instances s1 and s2
s1=s2 will call shared_ptr
's operator=(), right?
Yes. Roman Perepelitsa.