summaryrefslogtreecommitdiff
path: root/src/base/flags.hh
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-11-10 11:51:17 -0800
committerNathan Binkert <nate@binkert.org>2008-11-10 11:51:17 -0800
commit194f0310d3bad34f94f66289946f9d34f00d33e4 (patch)
tree110815db6784e9c8801cb96273117640b2f9c04e /src/base/flags.hh
parent27e8f3c98a4b1c56e16ce5f80c7ad992083ccef9 (diff)
downloadgem5-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/base/flags.hh')
0 files changed, 0 insertions, 0 deletions