[Development] Allowed C++11 features [was: Re: Re: MSVC2012 in CI]
Poenitz Andre
Andre.Poenitz at theqtcompany.com
Mon Mar 21 12:07:24 CET 2016
Marc Mutz <marc.mutz at kdab.com> wrote:
> I said then and I repeat it now that imho template aliases are not interesting
> for library development. In particular, I don't think something like
>
> > > > template<typename T>
> > > > using QNodeCreatedChangePtr = QSharedPointer<QNodeCreatedChange<T>>;
>
> should be part of an API of a library. We have auto to avoid having to type
> this type. The typedefs just hide the (essential) fact that this is a shared
> pointer type.
Do I understand correctly that you argue that the fact that the actual
type is a shared pointer is so important that it shall not be hidden by
a template alias whereas it would be completely fine to hide everything
related to type by using auto?
Andre'
More information about the Development
mailing list