gvpack: replace CDT attribute dictionaries with std::maps
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 22 Sep 2022 03:33:41 +0000 (20:33 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 3 Oct 2022 00:21:03 +0000 (17:21 -0700)
commit3c1b54e764661a83cf1974da840cc09c8b039266
treeeed61a5954da5aeed762b63ba40062045b5d8436
parent5dc7f0b55178c655a86ddc5b052f4436a026f648
gvpack: replace CDT attribute dictionaries with std::maps

This is intended to be a non-functional change with a number of benefits:

  1. This is C++ code, so no need for custom CDT data structures. The STL
     equivalents are likely more optimized, better understood by the compiler,
     and more familiar to human readers.

  2. We avoid the lib/common allocation routines (`NEW` macro and friends). Now
     allocation failures naturally propagate outwards as `std::bad_alloc`
     exceptions without any custom handling.

  3. Related to (2), we no longer need to manually free any of these objects.
     RAII takes care of all of this.
cmd/tools/gvpack.cpp