# include <compare>
#endif
-#if !defined __cpp_lib_three_way_comparison && _GLIBCXX_HOSTED
+#if !defined __cpp_lib_three_way_comparison
# include <bits/stl_function.h> // for std::less
#endif
constexpr bool
operator<(coroutine_handle<> __a, coroutine_handle<> __b) noexcept
{
-#if _GLIBCXX_HOSTED
return less<void*>()(__a.address(), __b.address());
-#else
- return (__UINTPTR_TYPE__)__a.address() < (__UINTPTR_TYPE__)__b.address();
-#endif
}
constexpr bool
} // namespace __n4861
-#if _GLIBCXX_HOSTED
template<typename _Tp> struct hash;
template<typename _Promise>
return reinterpret_cast<size_t>(__h.address());
}
};
-#endif
#else
-#error "the coroutine header requires -fcoroutines"
+#error "the <coroutine> header requires -fcoroutines"
#endif
_GLIBCXX_END_NAMESPACE_VERSION