Boost logo

Boost :

Subject: Re: [boost] Call for interest - BOOST_AUTO_FUNCTION
From: Matt Calabrese (rivorus_at_[hidden])
Date: 2010-10-10 14:21:53

For another use-case, here is my implementation of clone_ptr (sorry,
untested, poorly commented)

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

Boost list run by bdawes at, gregod at, cpdaniel at, john at