mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
259048cd90
This is invalid: RootedObject robj(cx, func(RootedObject(cx, obj))); because Rooted<T> uses RAII to maintain a stack of rooted cells, which means it depends on constructors and destructors to properly nest. But the above code will call: 1. inner constructor 2. outer constructor 3. inner destructor 4. outer destructor According to Luke, this is per spec; the temporary must last to the end of the statement. --HG-- extra : rebase_source : b9ec3cacd5537a3ca2b7eee3edd73022d2e7f132 |
||
---|---|---|
.. | ||
ductwork/debugger | ||
examples | ||
ipc | ||
jsd | ||
public | ||
src | ||
xpconnect |