forked from qt-creator/qt-creator
		
	Change-Id: I8040fe8dfc99d66e242ce2ff8589aa914838bfc9 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
		
			
				
	
	
		
			21 lines
		
	
	
		
			275 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			275 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| int variable;
 | |
| 
 | |
| int x = variable + 3;
 | |
| 
 | |
| template <typename TemplateName>
 | |
| class TemplateKlasse {
 | |
| public:
 | |
|     TemplateName value;
 | |
| };
 | |
| 
 | |
| void function()
 | |
| {
 | |
|     TemplateKlasse<int> instance;
 | |
| 
 | |
|     instance.value += 5;
 | |
| 
 | |
|     auto l = [x=instance] {
 | |
|         int k = x.value + 3;
 | |
|     };
 | |
| }
 |