| Author | 
                
                  Topic   | 
                  | 
              
              
                | 
                 GKarRacer 
                Ketchup Master 
                     
                 
                
                USA 
                58 Posts  | 
                
                  
                    
                      
                       Posted - Oct 07 2010 :  6:41:37 PM
                        
                        
                      
  | 
                     
                    
                       The "List of Methods in file" (Alt-M) shows an incorrect name for operator<< functions. It drops off the second '<' and lists it as operator< instead. It's the same whether it's a member function or free function. This is as of build 1833.
  It is minor, but it does make it a bit harder as it conflicts with actual operator< functions. Selecting it from the list still goes to the correct function at least.
  The other direction (operator>>) works correctly.
  | 
                     
                   
                 | 
              
              
                | 
                 GKarRacer 
                Ketchup Master 
                     
                 
                
                USA 
                58 Posts  | 
                
                  
                    
                      
                       Posted - Oct 07 2010 :  6:46:13 PM
                        
                        
                      
  | 
                     
                    
                      |  Just to add: it also shows the same thing in VA View and the "Definition" drop-down. Va Outline, however, shows the correct name. | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 accord 
                Whole Tomato Software 
                      
                 
                
                United Kingdom 
                3287 Posts  | 
                
                  
                    
                      
                       Posted - Oct 08 2010 :  03:50:18 AM
                        
                        
                      
  | 
                     
                    
                       I beleive that this is case=7383
  Can you please post an example declaration where << is truncated in the alt+m list? | 
                     
                    
                       Edited by - accord on Oct 08 2010  03:52:12 AM | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 GKarRacer 
                Ketchup Master 
                     
                 
                
                USA 
                58 Posts  | 
                
                  
                    
                      
                       Posted - Oct 08 2010 :  1:27:52 PM
                        
                        
                      
  | 
                     
                    
                       It is very easy to see. The following code will do it for example:
  struct astruct {   int a;
    void operator<<(int b)   {} };
  void operator<<( CArchive& ar, const astruct& s ) { }
 
  Both uses of operator<< show as operator< in the list.
  | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 accord 
                Whole Tomato Software 
                      
                 
                
                United Kingdom 
                3287 Posts  | 
                
                  
                    
                      
                       Posted - Oct 08 2010 :  2:59:37 PM
                        
                        
                      
  | 
                     
                    
                       Strange. Which Visual Studio are you using? It shouldn't matter, but I don't see the problem with VS2010 and VS2008 SP1. I took a screenshot of my VA outline, using VS2008:
 
  
 
  | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 GKarRacer 
                Ketchup Master 
                     
                 
                
                USA 
                58 Posts  | 
                
                  
                    
                      
                       Posted - Oct 08 2010 :  3:18:53 PM
                        
                        
                      
  | 
                     
                    
                       VA Outline shows it correctly. But the others don't (VA View, Definition drop down, and Method list). I'm using VS2010. I haven't checked 2005 or 2008 yet.
  This is from the List of methods in current file drop down:
  
  | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 GKarRacer 
                Ketchup Master 
                     
                 
                
                USA 
                58 Posts  | 
                
                  
                    
                      
                       Posted - Oct 08 2010 :  3:27:32 PM
                        
                        
                      
  | 
                     
                    
                       I verified that VS2005 and VS2008 also have the same problem.
  | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 accord 
                Whole Tomato Software 
                      
                 
                
                United Kingdom 
                3287 Posts  | 
                
                  
                    
                      
                       Posted - Oct 11 2010 :  03:45:27 AM
                        
                        
                      
  | 
                     
                    
                       Ups! Yes, I was testing the wrong thing, sorry  
  Now I am seeing the same effect here with your test case, in alt+m list. I have added a comment to the case, thank you. | 
                     
                    
                       Edited by - accord on Oct 11 2010  03:50:20 AM | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                | 
                 support 
                Whole Tomato Software 
                      
                 
                
                5566 Posts  | 
                
                  
                    
                      
                       Posted - Nov 12 2010 :  3:35:08 PM
                        
                        
                      
  | 
                     
                    
                      |  case=7383 is fixed in build 1836 | 
                     
                    
                        Whole Tomato Software, Inc. | 
                     
                    
                        | 
                     
                   
                 | 
              
              
                |   | 
                
                  Topic   | 
                  |