the 2 basic uses of q[< someType * >]

template and casting both use , with a pointer type in there.

This coincidence is exploited by Boost polymorphic_cast. This is a function template but it looks exactly like the original dynamic_cast in the use of angle brackets.

But note what goes into the angle brackets — our old friend the pointer.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s