16 lines
505 B
C++
Raw Normal View History

// { dg-do compile { target c++11 } }
2019-06-02 17:48:37 +02:00
// { dg-require-cstdint "" }
2015-08-28 17:33:40 +02:00
#include <random>
std::mt19937 urng;
std::__detail::_Adaptor<std::mt19937, unsigned long> aurng(urng);
auto x = std::generate_canonical<std::size_t,
std::numeric_limits<std::size_t>::digits>(urng);
2018-12-28 16:30:48 +01:00
// { dg-error "static assertion failed: template argument must be a floating point type" "" { target *-*-* } 156 }
2015-08-28 17:33:40 +02:00
2019-06-02 17:48:37 +02:00
// { dg-error "static assertion failed: template argument must be a floating point type" "" { target *-*-* } 3320 }