mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Export major/minor/patch helpers on SemVerVersion
This commit is contained in:
		
							parent
							
								
									067109e1ae
								
							
						
					
					
						commit
						7a988555c3
					
				| @ -40,6 +40,12 @@ struct SemVerVersion | ||||
| 	std::string prerelease; | ||||
| 	std::string build; | ||||
| 
 | ||||
| 	unsigned major() const { return numbers[0]; } | ||||
| 	unsigned minor() const { return numbers[1]; } | ||||
| 	unsigned patch() const { return numbers[2]; } | ||||
| 
 | ||||
| 	bool isPrerelease() const { return !prerelease.empty(); } | ||||
| 
 | ||||
| 	explicit SemVerVersion(std::string const& _versionString = "0.0.0"); | ||||
| }; | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user