13 Nov
                
                    2007
                
            
            
                13 Nov
                
                '07
                
            
            
            
        
    
                10:34 p.m.
            
        Amazing, I didn't know about the flyweight pattern and coded this myself but I called it hash_pool. And of course it wasn't as sophisticated as what you are presenting. It had a refcount tracking and was only 300 lines of code though :-) Now, I feel like I don't have to write code anymore, Boost will just come up with something better. Anyway I will do some tests to see how it compares in terms of performance, but it looks very good. Thanks Joaquin! Kevin