Currently, when a duplicate types is entered into a formats_builder, an std::invalid_argument is thrown with a message about how that type already exists. This can be inconvenient at time. There are three things that are possible:
Throw exception. The current behavior
Replace existing. Replace the adapter for the type with the new one.
Currently, when a duplicate types is entered into a
formats_builder
, anstd::invalid_argument
is thrown with a message about how that type already exists. This can be inconvenient at time. There are three things that are possible: