Introduce safe_as_a
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 18 Aug 2014 19:50:38 +0000 (19:50 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 18 Aug 2014 19:50:38 +0000 (19:50 +0000)
commit26b3538ba2d537d820c45a02c11ae830093410c0
tree9de6672999a52ba34bb22855eb614e2b5b7dc0b0
parentc41b94cef21ec1b2c224bfe31223cf2e5c91305c
Introduce safe_as_a

gcc/
2014-08-18  David Malcolm  <dmalcolm@redhat.com>

* is-a.h (template<T, U> safe_as_a <U *p>) New function.

From-SVN: r214117
gcc/ChangeLog
gcc/is-a.h