News about proposed Boost.Application library
 
            
            
            
            
                29 Jul
                
                    2014
                
            
            
                29 Jul
                
                '14
                
            
            
            
        
    
                9:44 a.m.
            
        On Tue, Jul 29, 2014 at 9:39 AM, Klaim - Joël Lamotte <mjklaim@gmail.com> wrote:
It would be nice if get_symbol returned a smart pointer that contained a shared_ptr to the library. When all such references are released, the library can be unloaded.
I disagree. In my experience it would be more useful if it contained a weak_ptr to the library, with a centralised system keeping all loaded libraries alive and allowing the used to unload the library explicitely. The get_symbol return type would then be testable. That way it is easier to find issues related to plugins and its still possible for the user to prevent these issues at runtime.
+1
        4112
        
      
          Age (days ago)
        
      
        4112
        
    
          Last active (days ago)
        
        
        
        0 comments
    
    
        
        1 participants
    
    
    
    
    
    
    
    
    participants (1)
- 
                 Matus Chochlik Matus Chochlik