cpp: Fix version info comparison
authorAndre Heinecke <aheinecke@intevation.de>
Mon, 4 Sep 2017 09:23:56 +0000 (11:23 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Mon, 4 Sep 2017 09:23:56 +0000 (11:23 +0200)
commit58d7bcead3394fa80c2a05d0d1e0fb4d9a1048b0
treed8eabd6e9ed1c9f1391eabd260cbfe2f71e7cf37
parent47f61df0704485b8165c9cf2a27ad57bcd864239
cpp: Fix version info comparison

* lang/cpp/src/engineinfo.h (EngineInfo::Version::operator<):
Fix logic.
* lang/cpp/src/engineinfo.h (EngineInfo::Version::operator>):
New.
* NEWS: Mention added API

--
This fixes a logic error that 2.2.0 < 2.1.19 would return true.
NEWS
lang/cpp/src/engineinfo.h