openframeworks/openFrameworks — pull request #1313 by tgfrerer (2012-06-07 14:24:03+00:00)
Title: Feature dynamic pointer cast of ptr

I propose to add dynamic_pointer_cast to the ofPtr facade.

dynamic_pointer_cast allows you to downcast from ofPtr, similar to dynamic_cast with 'dumb' pointers.

A simple dynamic_cast would eventually break ofPtr.