4 ms·
A C++ object can be perfectly safe to copy in one situation and conjure up nasal demons in another situation. I don't think rule of 5 would help in that case.
by yongjik 5y ago
A C++ object can be perfectly safe to copy in one situation and conjure up nasal demons in another situation. I don't think rule of 5 would help in that case.
- flqn 5y agoIf the copy behaviour is that different between the two cases it should be two different classes.