Opened 14 years ago
Closed 14 years ago
#2799 closed Bugs (fixed)
math float_advance causes link error for itrunc - missing include in boost/math/special_functions.next.hpp
Reported by: | Paul A. Bristow | Owned by: | Paul A. Bristow |
---|---|---|---|
Milestone: | Boost 1.39.0 | Component: | math |
Version: | Boost 1.38.0 | Severity: | Problem |
Keywords: | missing include math float_advance trunc | Cc: |
Description
boost/math/special_functions/next.hpp
doesn't include
boost/math/special_functions/trunc.hpp
and hence I get linker errors when only including the former and using boost::math::float_advance:
main.cpp
#include <boost/math/special_functions/next.hpp> including this prevents the linker error #include <boost/math/special_functions/trunc.hpp>
int main(int argc, char argv) {
double x = boost::math::float_advance(1.0,1); return 0;
} reported by Jeffrey Hellrung and confirmed.
Fix is to add #include trunc.hpp to next.hpp
But this should have been detected?
Note:
See TracTickets
for help on using tickets.
(In [51455]) Merges changes from Sandbox version: MPFR Support. New distributions: laplace, logistic and hypergeometric. Added PCH support to the Jamfiles for faster build times. Added C# usage example. Updated and regenerated docs. Also fixes #2799 and updates the tests to catch this failure in future.