build: clang16 fixes (c++20 concept headers available)

This commit is contained in:
Roland Conybeare 2023-10-19 12:15:18 -04:00
commit a6d0252dd4
2 changed files with 7 additions and 1 deletions

View file

@ -30,8 +30,9 @@ namespace xo {
#else
&& std::copyable<Distribution>
&& std::copyable<typename Distribution::param_type>
&& std::equality_comparable<typename Distribution::param_type>
#endif
&& std::equality_comparable<typename Distribution::param_type>;
;
} /*namespace rng*/
} /*namespace xo*/

View file

@ -7,6 +7,8 @@
namespace std {
#ifdef __clang__
# if __clang_major__ <= 11
template < class T >
concept integral = std::is_integral_v<T>;
@ -31,8 +33,11 @@ namespace std {
&& requires { { G::min() } -> std::same_as<std::invoke_result_t<G&>>;
{ G::max() } -> std::same_as<std::invoke_result_t<G&>>;
requires std::bool_constant<(G::min() < G::max())>::value; };
# endif
#else
/* uniform_random_bit_generator provided by gcc 12.3.2 */
/* uniform_random_bit_generator provided by clang 16 */
#endif
} /*namespace std*/