mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	static_assert to enforce this going forward
This commit is contained in:
		
							parent
							
								
									4ea34aaacd
								
							
						
					
					
						commit
						c05a403dd1
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -138,6 +138,8 @@ struct SigPool
 | 
			
		|||
template <typename T, class Compare = std::less<T>>
 | 
			
		||||
struct SigSet
 | 
			
		||||
{
 | 
			
		||||
	static_assert(!std::is_pointer<T>::value || !std::is_same<Compare, std::less<T>>::value, "Explicit `Compare' class require for SigSet with pointer-type values!");
 | 
			
		||||
 | 
			
		||||
	struct bitDef_t : public std::pair<RTLIL::Wire*, int> {
 | 
			
		||||
		bitDef_t() : std::pair<RTLIL::Wire*, int>(NULL, 0) { }
 | 
			
		||||
		bitDef_t(const RTLIL::SigBit &bit) : std::pair<RTLIL::Wire*, int>(bit.wire, bit.offset) { }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue