
10 Oct
2010
10 Oct
'10
6:21 p.m.
For another use-case, here is my implementation of clone_ptr (sorry, untested, poorly commented) http://codepaste.net/gm1g15 There the "auto function" macro is used for various things. One simple case is the make_clone_ptr template at the bottom, and another useful one is for dynamic_pointer_cast (sorry it's nested in a macro), since as far as I'm aware, there is no possible non-SFINAE-based metafunction that one could write to determine if a dynamic_cast expression would be valid. -- -Matt Calabrese