shared_ptr: struct of 3 shared_ptrs: is operator= for struct required?
10 Jul
2009
10 Jul
'09
8:52 a.m.
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
10 Jul
10 Jul
9:04 a.m.
New subject: shared_ptr: struct of 3 shared_ptrs: is operator= for struct required?
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.
5607
Age (days ago)
5607
Last active (days ago)
1 comments
2 participants
participants (2)
-
Hicham Mouline
-
Roman Perepelitsa