Detecting static member constants on GCC
 
            
            
            
            
                31 Mar
                
                    2005
                
            
            
                31 Mar
                
                '05
                
            
            
            
        
    
                8:15 p.m.
            
        It seems GCC 3.3.3 doesn't like to do SFINAE based on the validity of T::value: int f(...); template <class T> int f(T, int(*)[T::value] = 0); int x = f(1); // error: `int' is not an aggregate type The same applies when eliminating partial specializations via SFINAE. Has anyone got an alternative approach? -- Dave Abrahams Boost Consulting www.boost-consulting.com
        7519
        
      
          Age (days ago)
        
      
        7519
        
    
          Last active (days ago)
        
        
        
        0 comments
    
    
        
        1 participants
    
    
    
    
    
    
    
    
    participants (1)
- 
                 David Abrahams David Abrahams