Manu343726 / ctti

Compile Time Type Information for C++
MIT License
570 stars 55 forks source link

Fix for vs2015. In macro CTTI_TYPE_PRETTY_FUNCTION_PREFIX was "struct… #17

Closed fsmoke closed 6 years ago

fsmoke commented 6 years ago

Fix for vs2015. In macro CTTI_TYPE_PRETTY_FUNCTION_PREFIX was "struct" instead of "class", so ctti::nameof() returned "lass my_class_type" instead of "class my_class_type".

Manu343726 commented 6 years ago

The problem is that MSVC seems to use struct/class prefix depending on the type. So the only solution to this problem would be to parse the typename perfix. I've been delaying writing such parser for months...

Nice try :)