[m5-dev] changeset in m5: safe_cast: add a new cast function for casts th...

2008-11-10 Thread Nathan Binkert
changeset 83cc5483a8da in /z/repo/m5 details: http://repo.m5sim.org/m5?cmd=changeset;node=83cc5483a8da description: 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.

Re: [m5-dev] changeset in m5: safe_cast: add a new cast function for casts th...

2008-11-10 Thread nathan binkert
I just want to point out that this exists. Normally if you cast from a base type to a derived type, you should use dynamic_cast, but that's a waste in many cases since there should be no other way it could have happened. (For example the param structs). This is a nice handy thing that will