Subject: [Boost-bugs] [Boost C++ Libraries] #2799: math float_advance causes link error for itrunc - missing include in boost/math/special_functions.next.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-25 11:56:12
#2799: math float_advance causes link error for itrunc - missing include in
boost/math/special_functions.next.hpp
------------------------------------------------------+---------------------
Reporter: pbristow | Owner: pbristow
Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: math
Version: Boost 1.38.0 | Severity: Problem
Keywords: missing include math float_advance trunc |
------------------------------------------------------+---------------------
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?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2799> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC