| 35 | }; |
| 36 | /** Integer version. */ |
| 37 | struct IntegerVersion |
| 38 | { |
| 39 | unsigned int Major = 0; |
| 40 | unsigned int Minor = 0; |
| 41 | |
| 42 | IntegerVersion() = default; |
| 43 | IntegerVersion(unsigned int major, unsigned int minor) |
| 44 | : Major(major) |
| 45 | , Minor(minor) |
| 46 | { |
| 47 | } |
| 48 | |
| 49 | bool operator>(IntegerVersion const version) const |
| 50 | { |
| 51 | return (this->Major > version.Major) || |
| 52 | ((this->Major == version.Major) && (this->Minor > version.Minor)); |
| 53 | } |
| 54 | |
| 55 | bool operator>=(IntegerVersion const version) const |
| 56 | { |
| 57 | return (this->Major > version.Major) || |
| 58 | ((this->Major == version.Major) && (this->Minor >= version.Minor)); |
| 59 | } |
| 60 | }; |
| 61 | |
| 62 | /** Compiler features. */ |
| 63 | class CompilerFeatures |
no outgoing calls
no test coverage detected
searching dependent graphs…