|
Boost Users : |
Subject: Re: [Boost-users] [boost-users][function] how to
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-01-19 13:58:03
AMDG
Igor R wrote:
>
> funcB = boost::lambda::bind(funcD, ll_static_cast<Derived*>(_1));
>
> Great, thank you!
> The only problem is that my actual code uses shared_ptr<Base>,
> shared_ptr<Derived>, rather than plain ptrs, so the ll_static_cast
> doens't compile... Is it still possible to enhance the formula? :)
I don't think that there is a predefined way to do this,
so you would need to create your own wrapper function object
using boost::static_pointer_cast instead of static_cast.
In Christ,
Steven Watanabe
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net