9 Sep
                
                    2004
                
            
            
                9 Sep
                
                '04
                
            
            
            
        
    
                2:54 p.m.
            
        Joao Abecasis wrote:
Hi!
I have written a small utility class to provide "empty member optimization" for arbitrary types. The implementation makes use of the empty base class optimization (EBCO) but avoids injection of the class. A uniform and contained interface is exposed wether the optimization applies or not:
template <typename T, size_t Index> compressed_pair
Ooops... I meant compressed_member, above. Regards, João Abecasis