[outcome] Purpose of value_type_if_enabled?
 
            
            
            
            
                27 Jan
                
                    2018
                
            
            
                27 Jan
                
                '18
                
            
            
            
        
    
                6:11 p.m.
            
        Are value_type_if_enabled and error_type_if_enabled supposed to be used by the library users? If so, how?
 
            
            
            
            
                27 Jan
                
            
            
                27 Jan
                
            
            
            
        
    
                8:53 p.m.
            
        On 27/01/2018 17:11, Bjorn Reese via Boost wrote:
Are value_type_if_enabled and error_type_if_enabled supposed to be used by the library users? If so, how?
Purely a "self documenting typedef" there to remind the API reader that that overload becomes unavailable if there is any ambiguity between value and error types. This technique lets me avoid SFINAE around the in_place_type<T> overloads, saving some compile time load. Niall -- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/
        2834
        
      
          Age (days ago)
        
      
        2834
        
    
          Last active (days ago)
        
        
        
        1 comments
    
    
        
        2 participants
    
    
    
    
    
    
    
    
    participants (2)
- 
                 Bjorn Reese Bjorn Reese
- 
                 Niall Douglas Niall Douglas