Skip to content
Snippets Groups Projects
  • Nat Goodspeed's avatar
    c0318d1b
    Make LLInstanceTracker<T, T*>::getInstance(T*) validate passed T*. · c0318d1b
    Nat Goodspeed authored
    For the T* specialization (no string, or whatever, key), the original
    getInstance() method simply returned the passed-in T* value. It was defined,
    as the comments noted, for completeness of the analogy with the keyed
    LLInstanceTracker specialization.
    It turns out, though, that getInstance(T*) can still be useful to ask whether
    the T* you have in hand still references a valid T instance. Support that
    usage.
    c0318d1b
    History
    Make LLInstanceTracker<T, T*>::getInstance(T*) validate passed T*.
    Nat Goodspeed authored
    For the T* specialization (no string, or whatever, key), the original
    getInstance() method simply returned the passed-in T* value. It was defined,
    as the comments noted, for completeness of the analogy with the keyed
    LLInstanceTracker specialization.
    It turns out, though, that getInstance(T*) can still be useful to ask whether
    the T* you have in hand still references a valid T instance. Support that
    usage.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.