Skip to content

Commit

Permalink
Use enable_if_t in a form understandable for clang-tidy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz Glebocki committed May 23, 2022
1 parent d2e94bd commit 806ba2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/util/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ class Variant {
constexpr Variant(Variant&& other) noexcept { Construct(std::move(other)); }

// TODO(mglb): enable conditionally
template <class T, std::enable_if_t<type_list_contains_v<T>>* = nullptr>
template <class T, typename = std::enable_if_t<type_list_contains_v<T>>>
constexpr explicit Variant(T&& obj) noexcept {
Construct(std::forward<T>(obj));
}
Expand Down

0 comments on commit 806ba2e

Please sign in to comment.