25 Oct
2013
25 Oct
'13
9:22 a.m.
2013/10/25 Giovanni Piero Deretta
Intrusive_ptr doesn't have tivial copy constructor (how could it have? it needs to update the counter), ergo is not trivially copyable and the above two point do not apply.
but the standard says 'trivially copyable' not 'trivial copy constructor' - e.g. the code examples by the standard document gives correct results for intrusive_ptr (because all criteria are fulfilled). does this mean the standard document contains a false wording/examples?