Skip to content
Snippets Groups Projects
  • Nat Goodspeed's avatar
    2e83dfa2
    MAINT-1175: Ditch LLTypeInfoLookup, make map<const type_info*> work. · 2e83dfa2
    Nat Goodspeed authored
    Instead of forbidding std::map<const std::type_info*, ...> outright (which
    includes LLRegistry<const std::type_info*, ...> and LLRegistrySingleton<const
    std::type_info*, ...>), try to make it work by specializing std::less<const
    std::type_info*> to use std::type_info::before().
    Make LLRegistryDefaultComparator<T> use std::less<T> so it can capitalize on
    that specialization.
    2e83dfa2
    History
    MAINT-1175: Ditch LLTypeInfoLookup, make map<const type_info*> work.
    Nat Goodspeed authored
    Instead of forbidding std::map<const std::type_info*, ...> outright (which
    includes LLRegistry<const std::type_info*, ...> and LLRegistrySingleton<const
    std::type_info*, ...>), try to make it work by specializing std::less<const
    std::type_info*> to use std::type_info::before().
    Make LLRegistryDefaultComparator<T> use std::less<T> so it can capitalize on
    that specialization.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.