Manu343726 / siplasplas

A library for C++ reflection and introspection
https://manu343726.github.io/siplasplas
MIT License
195 stars 27 forks source link

Variant internal layout and ctti::type_id_t #5

Closed Manu343726 closed 8 years ago

Manu343726 commented 8 years ago

There are some redditors complaining about fixed storage of ctti::detail::string (The type that stores type names at compile-time as part of ctti::type_id_t). This actually affects cpp::Variant too since it uses too much space for the usual type names we have in a variant (int, char, Entity, etc. ctti::detail::string length is 256 by default IIRC).

See comments here: https://www.reddit.com/r/programming/comments/3we1fy/getting_the_type_of_a_template_argument_as_string/?ref=share&ref_source=link