You can clone with
I guess it is to make it possible to use it without rtti, but it makes it incompatible with std::type_index.
Yes, it was done to force users to use boost::type_id() and boost::type_id_rtti_only(variable).
But you gave ma a food for thoughts: some users will be interested only in features of std::type_index in boost::type_index, so public constructor will be useful for them.
I'll think for a while, and possibly will make constructor public.
Yes that was how I stumbled on your lib. I needed a type_info wrapper to put into a container. And my system needs to work with boost any's .type() member, so I do not have the option to use anything else.
Make type_index constructor from std::type_info public (fixes #3)
Update documentation (refs #3)
Documentation regenerated (refs #3)