Opened 11 years ago

Closed 10 years ago

#5705 closed Bugs (wontfix)

binomial_distribution<long long> compilation error

Reported by: bolero.murakami+cpp@… Owned by: No-Maintainer
Milestone: To Be Determined Component: random
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

It is an error code:

boost::random::mt19937 eng;
boost::random::binomial_distribution<long long> dist;
dist(eng);

Output (VC9):

.\boost\random\binomial_distribution.hpp(324) : error C2668: 'abs' : ambiguous call to overloaded function

std::abs aren't overloaded for long long.

Change History (2)

comment:1 by Steven Watanabe, 11 years ago

long long abs(long long);

is defined in C++11.

comment:2 by Steven Watanabe, 10 years ago

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.