blob: ad2cbc6e71b5b0706ce8295cf2d1adb89b961a3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// { dg-do compile { target c++11 } }
#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);
// { dg-error "static assertion failed: template argument must be a floating point type" "" { target *-*-* } 160 }
// { dg-error "static assertion failed: template argument must be a floating point type" "" { target *-*-* } 3314 }
|