carb::isVersionSemanticallyCompatible
Defined in carb/Version.h
- 
inline bool carb::isVersionSemanticallyCompatible(const char *name, const Version &minimum, const Version &candidate)
- Checks two versions to see if they are semantically compatible. - For more information on semantic versioning, see https://semver.org/. - Warning - A major version of - 0is considered to be the “development/experimental” version and- 0.xminor versions may be but are not required to be compatible with each other. This function will consider- minimumversion- 0.xto be semantically compatible to different- candidateversion- 0.y, but will emit a warning to- stderrif a- nameis provided.- Parameters
- name – An optional name that, if provided, will enable the warning message to - stderrfor- 0.xversions mentioned above.
- minimum – The minimum version required. This is typically the version being tested. 
- candidate – The version offered. This is typically the version being tested against. 
 
- Return values
- true – If - minimumand- candidateshare the same major version and- candidatehas a minor version that is greater-than or equal to the minor version in- minimum.
- false – If - minimumand- candidatehave different major versions or- candidatehas a minor version that is lower than the minor version requested in- minimum.