UserDB::{read,write}(): bool, Really?#
void write(const std::string& filename, bool binary=true);
void read(const std::string& filename, bool binary=true);
Boolean parameters are forbidden (according to Uncle Bob).
Introduce an
enum(enum classmaybe), and pass that insteadEliminate the default value
Show what
switchcan do for you, provided you don’t put adefault:label.