Boost logo

Boost Users :

Subject: Re: [Boost-users] signals/slots and boost::functions
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-12-10 16:51:15


AMDG

david.weber_at_[hidden] wrote:
> For those interested, It appears the reason was because of a compiler
> error I hit, and didn't ask about, or really worry how to resolve it.
> :-/
>
>
>
> Function declaration:
>
>
> typedef boost::function < VSSP ( std::string, EncodingEnum) >
> CreateTypeFunc;
>
> bool ElementBase::disconnectCreateTypeSignal(const CreateTypeFunc& slot)
> {
> LOG4CXX_DEBUG(logger_, "disconnectCreateTypeSignal in");
> bool retValue = false;
>
> createTypeSignal_.disconnect(slot);
>

Ah. If you can somehow know what type slot holds, then it would work.
See http://www.boost.org/doc/html/function/faq.html#id2914032

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