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

_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to