3 ms·
One approach would be to have custom types (i.e. classes) so that you could write things in a type-safe manner: fobricate(type1(), type2(false), type3()); H
by Koshkin 3y ago
One approach would be to have custom types (i.e. classes) so that you could write things in a type-safe manner:
fobricate(type1(), type2(false), type3());
Here 'true' is the default. The only difference between these types would only be in the name, so they all can have a common base.