Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: boeschf <[email protected]>
  • Loading branch information
thorstenhater and boeschf authored Sep 16, 2024
1 parent 6260c27 commit 7f4cd06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arbor/include/arbor/util/any_ptr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct ARB_SYMBOL_VISIBLE any_ptr {

template <typename T, typename = std::enable_if_t<std::is_pointer<T>::value>>
constexpr T as() const noexcept {
if (std::is_same<T, void*>::value) {
if constexpr (std::is_same_v<T, void*>) {
return (T)ptr_;
}
else {
Expand Down
4 changes: 2 additions & 2 deletions modcc/symge.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct symbol_term {
symbol left, right;

symbol_term() = default;
symbol_term(const symbol left): left(std::move(left)) {}
symbol_term(symbol left): left(std::move(left)) {}
symbol_term(symbol left, symbol right): left(std::move(left)), right(std::move(right)) {}
bool is_zero() const { return !left || !right; }
operator bool() const { return !is_zero(); }
Expand All @@ -56,7 +56,7 @@ struct symbol_term_diff {
symbol_term left, right;

symbol_term_diff() = default;
symbol_term_diff(const symbol_term left): left(std::move(left)) {}
symbol_term_diff(symbol_term left): left(std::move(left)) {}
symbol_term_diff(symbol_term left, symbol_term right): left(std::move(left)), right(std::move(right)) {}
};

Expand Down

0 comments on commit 7f4cd06

Please sign in to comment.