On Saturday 23 January 2016 19:22:34 Marc Mutz wrote:
> > template < class Container, class Compare >
> > void sort ( Container container, Compare compare)
> > {
> >
> > sort(begin(container), end(container), compare);
> >
> > };
> >
> >
> >
> > Something like that perhaps? Feel free to add as many as you think are
> > useful.
>
> The problem is that these overloads quickly become ambiguous with existing
> ones. So at a minimum, you need to have a special suffix (_all).Overloading
> on concepts is needed to solve this properly.
Another way to do that is to have a special prefix of "q".
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development