Boost logo

Boost Users :

Subject: Re: [Boost-users] [partly: Boost.Function] typesafe (templated) wrapper around class with void* API
From: Christoph Duelli (duelli_at_[hidden])
Date: 2009-01-29 12:41:29


> Use CRTP
> template<class Derived, class T>
> class B {
> private:
> bool help_me(const void* t) {
> return static_cast<Derived*>(this)->help_me(static_cast<const
> T*>(t));
> }
> };
Indeed. Thank you.
 
> A::do_something(t, boost::lambda::bind(hf,
> boost::lambda::ll_static_cast<const T*>(boost::lambda::_1)));
ok. Thanks again!

Christoph


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