[libcxx-commits] [libcxx] [libc++] add floating point type check for uniform real distrubtion (PR #70564)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Oct 30 05:44:18 PDT 2023
================
@@ -27,6 +28,8 @@ _LIBCPP_BEGIN_NAMESPACE_STD
template<class _RealType = double>
class _LIBCPP_TEMPLATE_VIS uniform_real_distribution
{
+ static_assert(std::is_floating_point<_RealType>::value, "result_type must be floating type");
----------------
philnik777 wrote:
```suggestion
static_assert(is_floating_point<_RealType>::value, "result_type must be floating type");
```
https://github.com/llvm/llvm-project/pull/70564
More information about the libcxx-commits
mailing list