[Development] Adding support for version number comparisons
Thiago Macieira
thiago.macieira at intel.com
Wed May 14 22:26:34 CEST 2014
Em qua 14 maio 2014, às 08:45:28, Keith Gardner escreveu:
> > Well, if you use a virtual, you'd simply subclass to handle the specific
> > format for your project.
>
> I haven't thought about using inheritance to simplify the compare but I
> think that would provide the best compromise.
I don't want virtuals in this class.
I could accept a comparator function (e.g., a lambda), but I still think
that's overkill.
QVersion could simply report how many tokens it could parse and then leave it
up to the upper layer to deal with the rest of the string.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list