Re: [Boost-bugs] [Boost C++ Libraries] #1076: compile error: disconnecting struct with operator()() doesn't work in VS2005 SP1

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1076: compile error: disconnecting struct with operator()() doesn't work in VS2005 SP1
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-30 14:19:55


#1076: compile error: disconnecting struct with operator()() doesn't work in
VS2005 SP1
---------------------------------+------------------------------------------
  Reporter: boris@… | Owner: dgregor
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: signals
   Version: Boost 1.34.0 | Severity: Showstopper
Resolution: invalid | Keywords: error
---------------------------------+------------------------------------------
Changes (by anonymous):

  * status: new => closed
  * resolution: => invalid

Comment:

 I think you need an equality comparison here - otherwise, how will the
 compiler know which slot to disconnect?

 {{{
 struct event_handler
 {
        void operator()() {}
        bool operator == ( const event_handler &rhs ) { return true; }
 };
 }}}

 I'll see about getting the documentation updated, too.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/1076#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC