0

I have user-defined struct

template < class T >
struct OutputValue : public OutputBase 
{
 ..
}

and

template < class T >
struct OutputValueRange : public OutputValue<T> 
{
 ..
}

Now I have declared two member variables

OutputValue<double>             m_dStimulatedAudioLatency;
OutputValueRange<double>        m_dDecodeAudioLatency;

I need to get the struct name of the member variables.Expected output is

m_dStimulatedAudioLatency.structname() = OutputValue
m_dDecodeAudioLatency.structname() = OutputValueRange

I tried doing-

How can I get the class name from a C++ object?

but I got something like this as output

   class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char>>

Please help me out with this.

0 Answers0