Почему MSVC std::exponential_distribution::max() возвращает inf?C++

Программы на C++. Форум разработчиков
Anonymous
Почему MSVC std::exponential_distribution::max() возвращает inf?

Сообщение Anonymous »

Почему следующий код печатает inf с помощью последней версии MSVC++?

Код: Выделить всё

#include 
#include 

int main()
{
std::random_device rd;
std::mt19937 gen(rd());

std::exponential_distribution d(1);

std::cout 

Подробнее здесь: [url]https://stackoverflow.com/questions/79273004/why-msvc-stdexponential-distributionmax-returns-inf[/url]

Вернуться в «C++»