7 Jul
                
                    2006
                
            
            
                7 Jul
                
                '06
                
            
            
            
        
    
                11:54 p.m.
            
        On 7/7/06, Dean Michael Berris <mikhailberis@gmail.com> wrote:
But if you're using references, you give a cleaner and more definite handle to your data:
exception_info & info (get_exception_info(e)); info ++; // won't work, unless operator++ is defined for exception_info
If you go with references, what would happen in this situation: try { //Some client code. throw some_error(); //Note that this exception does not have exception_info associated with it. } catch(some_error& e) { exception_info& info(get_exception_info(e)); //The dynamic cast in get_exception_info returns a null pointer. } Jeremy