typeindices.hpp: rename typeinfo_v to typelist_v

This commit is contained in:
Nekotekina 2019-09-18 15:30:45 +03:00
parent be61499790
commit c7bf6421f4
3 changed files with 14 additions and 14 deletions

View file

@ -112,15 +112,15 @@ namespace stx
// Global typecounter instance
template <typename Info>
inline type_counter<Info> typeinfo_v{};
inline type_counter<Info> typelist_v{};
template <typename Info>
type_info<Info>::type_info(Info info, decltype(sizeof(int))) noexcept
: Info(info)
, type(typeinfo_v<Info>.count())
, type(typelist_v<Info>.count())
{
// Update linked list
typeinfo_v<Info>.next->next = this;
typeinfo_v<Info>.next = this;
typelist_v<Info>.next->next = this;
typelist_v<Info>.next = this;
}
}