Skip to content

Commit

Permalink
Fixed build for old Xcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
23rd committed Nov 5, 2022
1 parent 2dc6281 commit 61cf9a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion base/qt/qt_compare.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

#include <QString>

#if !defined(__apple_build_version__) || (__apple_build_version__ > 12000032)

template <typename P>
[[nodiscard]] inline std::strong_ordering operator<=>(
const gsl::not_null<P> &a,
Expand Down Expand Up @@ -85,4 +87,6 @@ inline constexpr auto operator<=>(
}
return Result();
}
#endif

#endif // _MSC_VER
#endif // __apple_build_version__
2 changes: 1 addition & 1 deletion base/weak_ptr.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class weak_ptr {
return get();
}

[[nodiscard]] friend inline auto operator<=>(
friend inline auto operator<=>(
weak_ptr,
weak_ptr) noexcept = default;

Expand Down

0 comments on commit 61cf9a3

Please sign in to comment.