diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-05-14 16:30:57 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-05-18 14:24:02 (GMT) |
commit | d76c5fb7feda66621b435263353f49e9b4b34308 (patch) | |
tree | da4b27c60127d4386abad70c7abc6c7d61539c04 /doc/src | |
parent | d13162dd4695274dc4bdb286ce85bf198391d94b (diff) | |
download | Qt-d76c5fb7feda66621b435263353f49e9b4b34308.zip Qt-d76c5fb7feda66621b435263353f49e9b4b34308.tar.gz Qt-d76c5fb7feda66621b435263353f49e9b4b34308.tar.bz2 |
Fix handling of dynamic casts in QSharedPointer.
It's wrong to assume that static_cast<> is allowed everywhere where
dynamic_cast<> is allowed. For example, if class C derives from both A
and B, then you can dynamic_cast<B *>(ptr_to_A), but you can't
static_cast.
So introduce a helper for dynamic casts that doesn't do
static_cast.
Reviewed-by: Olivier Goffart
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions