Skip to content

Commit

Permalink
command_line/options: Adjust the arguments_t copy constructor `noexce…
Browse files Browse the repository at this point in the history
…pt` markings noting that std::multiset can throw when copied
  • Loading branch information
dragonmux committed Jan 10, 2024
1 parent c5f6f5b commit dee2062
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion impl/command_line/arguments.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ namespace substrate::commandLine

// Implementation of the innards of arguments_t as otherwise we get compile errors
arguments_t::arguments_t() noexcept = default;
arguments_t::arguments_t(const arguments_t &arguments) noexcept = default;
arguments_t::arguments_t(const arguments_t &arguments) = default;
arguments_t::arguments_t(arguments_t &&arguments) noexcept = default;
arguments_t::~arguments_t() noexcept = default;
arguments_t &arguments_t::operator =(const arguments_t &arguments) noexcept = default;
Expand Down
2 changes: 1 addition & 1 deletion substrate/command_line/arguments
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ namespace substrate::commandLine

public:
arguments_t() noexcept;
arguments_t(const arguments_t &arguments) noexcept;
arguments_t(const arguments_t &arguments);
arguments_t(arguments_t &&arguments) noexcept;
~arguments_t() noexcept;
arguments_t &operator =(const arguments_t &arguments) noexcept;
Expand Down

0 comments on commit dee2062

Please sign in to comment.