Topic Author
Posts: 1
Joined: 24 May 2015, 22:45

Using metaclasses to shorten C++ boilerplate code

04 Oct 2017, 20:03

It seems that using C++ with Noesis requires a bit more boilerplate than the C# equivalent.

The upcoming metaclass feature in C++ should help that situation. Please check it out:

https://herbsutter.com/2017/07/26/metac ... erative-c/

Although not available on most compilers, yet, there is a Clang fork with the intention of merging back to mainline once the feature spec is approved:


It would be great if this feature was used by Noesis GUI at the same time that the language feature hits mainstream compilers, as it has the potential to dramatically simplify the initial learning curve of using Noesis GUI.
User avatar
Site Admin
Posts: 3997
Joined: 20 Jan 2012, 17:18

Re: Using metaclasses to shorten C++ boilerplate code

09 Oct 2017, 18:24

Thanks for sharing this! We are really excited about metaclasses because the static reflection proposal could have huge advantages for NoesisGUI C++ API. Right now this is one of the big differences between C++ and C# API. We would love to deprecate our custom C++ reflection and use a standard proposal.

We will keep you posted regarding this.

Who is online

Users browsing this forum: Google [Bot] and 2 guests