mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Make in() variadic operator take parameters by reference so we don't copy IdStrings
Template argument deduction strips references.
This commit is contained in:
		
							parent
							
								
									7daf917b51
								
							
						
					
					
						commit
						ab51b60b81
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -411,7 +411,7 @@ struct RTLIL::IdString
 | 
			
		|||
	// often one needs to check if a given IdString is part of a list (for example a list
 | 
			
		||||
	// of cell types). the following functions helps with that.
 | 
			
		||||
	template<typename... Args>
 | 
			
		||||
	bool in(Args... args) const {
 | 
			
		||||
	bool in(const Args &... args) const {
 | 
			
		||||
		return (... || in(args));
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue