I looked through GCC plugin API and some examples on github (which are basic), and I couldn't find anything that could help me with my question.
Suppose that I have a new standard library feature in mind, that can not be implemented with existing C++ features. Is it possible to implement an experimental library feature using GCC plugins?
For example, I would want to implement a function via a compiler extension rather than using additional 3rdparty scripts.
template <typename ... T>
/*result_type*/ aggregate_interfaces(T &...t);
As a result there must be a type, referencing objects t...
, and aggregating their public methods using some rule (like not allowing several methods with identical signatures, etc).
Is it possible to implement by the means of GCC Plugins, or the compiler itself needs to be modified?
https://stackoverflow.com/a/8144897/9363996 this answer references an article which seems to be useful