Re:Writing comments about pointer ownership
by nice_byte on Sunday August 23, 2015 @04:21AM
(#10105008)
Yes. It seems to work, but it might be a coincidence. The order of argument evaluation is undefined. It might be that the exception gets thrown before the ownership is transferred, but it's just luck. I have modified your example a bit, to better trace what's happening: http://ideone.com/tgh0xe
[ Parent
| on HN ]