Skip to content

Commit

Permalink
misc: fix for clang-tidy.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashigeru committed Jul 17, 2024
1 parent 5bd3159 commit abf5ed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/takatori/util/either.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class either {
* @param error the error information
* @return this
*/
either& operator=(error_const_reference error) noexcept(std::is_nothrow_copy_constructible_v<error_type>) {
either& operator=(error_const_reference error) noexcept(std::is_nothrow_copy_constructible_v<error_type>) { // NOLINT(*-exception-escape)
alternatives_.template emplace<error_index>(error);
return *this;
}
Expand All @@ -117,7 +117,7 @@ class either {
* @param error the error information
* @return this
*/
either& operator=(error_rvalue_reference error) noexcept(std::is_nothrow_move_constructible_v<error_type>) {
either& operator=(error_rvalue_reference error) noexcept(std::is_nothrow_move_constructible_v<error_type>) { // NOLINT(*-exception-escape)
alternatives_.template emplace<error_index>(std::move(error));
return *this;
}
Expand Down

0 comments on commit abf5ed8

Please sign in to comment.