mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
typeindices.hpp: add typeindex() helper
This commit is contained in:
parent
c7bf6421f4
commit
3092914527
3 changed files with 10 additions and 3 deletions
|
|
@ -506,7 +506,7 @@ namespace utils
|
|||
template <typename T>
|
||||
typemap_head* get_head() const
|
||||
{
|
||||
return &m_map[stx::type_counter<typeinfo_base>::type<std::decay_t<T>>.index()];
|
||||
return &m_map[stx::typeindex<typeinfo_base, std::decay_t<T>>()];
|
||||
}
|
||||
|
||||
public:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue