Skip to content

Commit b187fdf

Browse files
Simpify transparent_less_nonempty
1 parent 00e4c6d commit b187fdf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libcxx/test/support/is_transparent.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ struct transparent_less_not_referenceable
4040
// See https://github.com/llvm/llvm-project/issues/152543.
4141
struct transparent_less_nonempty {
4242
template <class T, class U>
43-
constexpr auto operator()(T&& t, U&& u) const //
44-
noexcept(noexcept(std::forward<T>(t) < std::forward<U>(u))) //
45-
-> decltype /**/ (std::forward<T>(t) < std::forward<U>(u)) {
46-
return /*--------*/ std::forward<T>(t) < std::forward<U>(u);
43+
constexpr bool operator()(T&& t, U&& u) const {
44+
return std::forward<T>(t) < std::forward<U>(u);
4745
}
4846
struct is_transparent {
4947
} pad_; // making this comparator non-empty

0 commit comments

Comments
 (0)