On 07.01.19 19:50, Tom Isaacson wrote:
> I wonder if moc-ng could handle this?
> https://woboq.com/blog/moc-with-clang.html

Not really, even if it can generate things in a header for templates, it still generates te actual data in a .cpp file.
As it was said before, we can't really have the contents of the QMetaObject.
Even verdigris does the same (putting the QMetaObject data in the .cpp)

One would have to do more research to find out if it is possible. Maybe putting more more data in the QMetaEnum dirrectly. Not sure if this is possible in a binary compatible way.


--
Olivier

Woboq - Qt services and support - https://woboq.com - https://code.woboq.org


> -----Original Message-----
> From: Development On Behalf Of Thiago Macieira
> Sent: Thursday, January 3, 2019 1:43 AM
> To: development@qt-project.org
> Subject: Re: [Development] Use QMetaEnum::keyCount() to initialise array
>
> On Wednesday, 2 January 2019 09:45:29 -02 Thiago Macieira wrote:
>> Because the information is not known to the compiler at compile time.
>
> To be stricter: it *is* know to the compiler, but without a constexpr
reflection API, we can't get the information out of the compiler and into code.
_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to