13 Jul
                
                    2006
                
            
            
                13 Jul
                
                '06
                
            
            
            
        
    
                8:14 p.m.
            
        Hello. Investigating a problem Elisabeth Benoit was having at the users mailing list I've come to this code, that doesn't work as I would expect: #include <boost/signal.hpp> #include <iostream> void func() { std::cout << "pp\n"; } int main() { boost::signal0<void> signal1; boost::signal0<void> signal2; boost::signal0<void>::slot_type slot = &func; boost::signals::connection conn = signal1.connect(slot); signal2.connect(slot); conn.disconnect(); signal2(); } The func() free function is only called once, because disconnect() removes the slot from both signals. I'm not sure if this is a bug, but I would expect slot_type to work as boost::function. Regards, Bruno
        7054
        
      
          Age (days ago)
        
      
        7054
        
    
          Last active (days ago)
        
        
        
        0 comments
    
    
        
        1 participants
    
    
    
    
    
    
    
    
    participants (1)
- 
                
Bruno Martínez