[Development] Adding support for version number comparisons
kreios4004 at gmail.com
Thu Jul 10 15:18:00 CEST 2014
On Thu, Jul 10, 2014 at 8:09 AM, Olivier Goffart <olivier at woboq.com> wrote:
> On Thursday 10 July 2014 07:53:29 Keith Gardner wrote:
> > On Thu, Jul 10, 2014 at 7:31 AM, Olivier Goffart <olivier at woboq.com>
> > > On Monday 02 June 2014 13:24:55 Richard Moore wrote:
> > > > On 2 June 2014 13:12, Keith Gardner <kreios4004 at gmail.com> wrote:
> > > > > On Mon, Jun 2, 2014 at 2:36 AM, Simon Hausmann wrote:
> > > > > > I suggest a name that is more centric towards the _function_ of
> > > > > > class, comparison of different software versions.
> > > > How about QVersionComparator?
> > >
> > > How about qVersionCompare(const QString&, const QString&)?
> > > Yes, that's a function. Is there really the need for a class to hold
> > > a version string?
> > >
> > > And there could be an overload with a SuffixComparator.
> > >
> > > (or is qCompareVersion an even better name?)
> > Currently, the QVersion::compare has an overload to pass a functor that
> > performs the suffix comparison. Are you suggesting having a "default" in
> > the operators that can be overwritten?
> I suggest not having any new classes. Just a function. (or a couple of
Sorry for the confusion. I was talking about a function pointer similar to
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Development