Merge branch 'main' of github.com:Rconybea/randomgen

This commit is contained in:
Roland Conybeare 2023-10-19 16:35:17 -04:00
commit 4f5cd005b3
2 changed files with 13 additions and 3 deletions

View file

@ -24,12 +24,17 @@ namespace xo {
// os << dist
// is >> dist
} && std::copyable<Distribution>
}
#ifdef __clang__
// std::copyable apparently not available in clang11 ?
#else
&& std::copyable<Distribution>
&& std::copyable<typename Distribution::param_type>
&& std::equality_comparable<typename Distribution::param_type>;
&& std::equality_comparable<typename Distribution::param_type>
#endif
;
} /*namespace rng*/
} /*namespace xo*/
/* end distribution_concept.hpp */

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*/