Open
Description
Is your feature request related to a problem?
bmqu::AlignedPrinter
class has some problems:
- The class' API expects
bsl::vector<const char*>
argument which is strange. The conventional way is to passbsl::vector<bsl::string>
. - It also stores this vector as a field.
- To get the
const char*
length,bsl::strlen
is used.
Describe the solution you'd like
Refactor bmqu::AlignedPrinter
, so:
-
bmqu::AlignedPrinter
constructor expectsbsl::string
, notconst char*
-
bmqu::AlignedPrinter
also stores these strings as aconst bsl::vector<bsl::string>
field (might be a pointer, might be a reference) - Add precondition assert that
d_fields_p
is not NULL in constructorAlignedPrinter::AlignedPrinter
or initialize this field as a reference - Update usage examples in the unit's documentation
- Update the code that uses this class
Alternatives you considered
No response