Avoid a lot of code duplication.
Also change constructor _def param to a const&, which was only in the std::string specialization before, but makes sense everywhere.
Avoid a lot of code duplication.
Also change constructor _def param to a const&, which was only in the std::string specialization before, but makes sense everywhere.