diff options
author | Nathan Binkert <nate@binkert.org> | 2008-11-10 11:51:17 -0800 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2008-11-10 11:51:17 -0800 |
commit | 194f0310d3bad34f94f66289946f9d34f00d33e4 (patch) | |
tree | 110815db6784e9c8801cb96273117640b2f9c04e /src/mem/packet.hh | |
parent | 27e8f3c98a4b1c56e16ce5f80c7ad992083ccef9 (diff) | |
download | gem5-194f0310d3bad34f94f66289946f9d34f00d33e4.tar.xz |
safe_cast: add a new cast function for casts that should always succeed.
In DEBUG mode, this does a dynamic_cast and asserts that the result is
non null. Otherwise, it just does a static_cast. Again, this is only
intended for cases where the cast should always succeed and what's
desired is a debugging check to make sure.
Diffstat (limited to 'src/mem/packet.hh')
0 files changed, 0 insertions, 0 deletions