t <development-bounces+jedrzej.nowacki=qt...@qt-project.org>
> on behalf of Olivier Goffart <oliv...@woboq.com> Sent: Saturday, August 27,
> 2016 9:30:21 AM
> To: development@qt-project.org
> Subject: Re: [Development] Should qMetaTypeId() ==
> qMetaTypeId()?
> On Mittwoch, 24. Aug
lopment-bounces+jedrzej.nowacki=qt...@qt-project.org> on
behalf of Olivier Goffart <oliv...@woboq.com>
Sent: Saturday, August 27, 2016 9:30:21 AM
To: development@qt-project.org
Subject: Re: [Development] Should qMetaTypeId() == qMetaTypeId()?
On Mittwoch, 24. August 2016 16:06:50 CE
On Mittwoch, 24. August 2016 16:06:50 CEST Jędrzej Nowacki wrote:
> On onsdag 24. august 2016 15.23.01 CEST Marc Mutz wrote:
> > Hi,
> >
> > Currently, it's not, which doesn't make much sense, does it?
> >
> > So,
> >
> > template
> > int qMetyTypeId() {
> > return
On quarta-feira, 24 de agosto de 2016 15:23:01 PDT Marc Mutz wrote:
> Hi,
>
> Currently, it's not, which doesn't make much sense, does it?
No, but const types can't be registered as metatypes either. Shouldn't the
caller drop the const qualifier on its own?
> template
> int qMetyTypeId()
Hi,
Currently, it's not, which doesn't make much sense, does it?
So,
template
int qMetyTypeId() {
return qMetaTypeIdHelper::type>();
}
?
(There's of course a lot more involved in this, registration should discard
const, too, e.g.).
Thanks,
Marc
--
Marc Mutz