Re: Stack Overflow Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 
 I might be misunderstanding what parts of the original were stand-in for needed complexity in what you're really trying to do vs. what was unnecessary complexity.
But it appears the main problem you have would be fixed usinghttps://en.cppreference.com/w/cpp/types/type_info/nameor some similar feature.That is documented as "implementation defined", which would be the only reason this (rather than just stackoverflow) might be a valid place to ask about it.
If I'm understanding your intent correctly, you need CRTP for some other reasons (rather than just needing the name of an instantiation of a templated class in text form). But you also need that text, and your attempt to produce it broke another aspect of your class hierarchy.

So the question (beyond my gcc knowledge at the moment) is whether the above mentioned method, vs. some gcc extention, will produce (at compile time) the appropriate text version of the name of an instantiation of a templated class.
 
-----Original Message-----
From: Ming Cheng via Gcc-help <gcc-help@xxxxxxxxxxx>
To: gcc-help <gcc-help@xxxxxxxxxxx>
Sent: Sat, Apr 10, 2021 12:43 am
Subject: Stack Overflow Question

C++ CRTP pattern and virtual function call
https://stackoverflow.com/q/65987043/14492198?sem=2
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux