Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The add subcommand function was not exception safe. It added the subc…
…ommand to the vector before checking the already added option. This would result in duplicate subcommands being in place in the subcommands_ vector. The modifications make it exception safe and remove what I think was an unnecessary check for pointer duplication, that as far as I can tell was always false since it was comparing a newly created pointer directly to previously created ones.
- Loading branch information