Add a type-safe C++ interface to a registry
authorTom Tromey <tom@tromey.com>
Wed, 10 Apr 2019 02:21:06 +0000 (20:21 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 8 May 2019 22:01:44 +0000 (16:01 -0600)
commit5f6e90a0cec8c269634ba0bff3c9e549a903c39a
tree2eb7ff67d1ab10909eb80099f8cf6d76e25f7d0e
parent1bd0c6e4964f68523794aded05aa4d184db44d48
Add a type-safe C++ interface to a registry

This changes DECLARE_REGISTRY to add a type-safe interface.  This
interface is a C++ class that handles the details of registering a
key, and provides various useful methods, including policy-based
cleanup.

gdb/ChangeLog
2019-05-08  Tom Tromey  <tom@tromey.com>

* registry.h (DECLARE_REGISTRY): Define the _key class.
gdb/ChangeLog
gdb/registry.h