Opened 12 years ago

Closed 12 years ago

#5360 closed Bugs (invalid)

Missing full qualification in boost::math bessel special functions

Reported by: Joel Falcou Owned by: John Maddock
Milestone: Boost 1.47.0 Component: math
Version: Boost 1.46.0 Severity: Problem
Keywords: Cc:

Description

On Ubuntu 10.10 64 bits, the attached code fails to compile. The error is :

/usr/include/boost/math/special_functions/detail/bessel_jy.hpp:192: error: ‘(boost::math::policies::discrete_quantile_policy_type)0u’ cannot be used as a function

Looks like the following piece of code

*p = real(f); *q = imag(f);

is not fully qualified enough.

Changing them to std::real/std::imag fix the problem tough.

Attachments (1)

bm.cpp (179 bytes ) - added by Joel Falcou 12 years ago.
Small repro for boost math failure

Download all attachments as: .zip

Change History (2)

by Joel Falcou, 12 years ago

Attachment: bm.cpp added

Small repro for boost math failure

comment:1 by Joel Falcou, 12 years ago

Resolution: invalid
Status: newclosed

OK, PEBCAK errors. I close this

Note: See TracTickets for help on using tickets.