-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Philipp Münzel Sent: Saturday, December 17, 2011 11:58 PM To: boost-users@lists.boost.org Subject: [Boost-users] lexical cast: changesign is not a member of boost::math
Hi folks,
I'm trying to compile the http server example of boost::asio: http://www.boost.org/doc/libs/1_48_0/doc/html/boost_asio/example/http/server...
I'm using gcc 4.6 on ubuntu Linux 11.10.
When compiling the reply.cpp, I get the following error: In file included from reply.cpp:13:0: /usr/local/include/boost/lexical_cast.hpp: In function ‘bool boost::detail::parse_inf_nan_impl(const CharT*, const CharT*, T&, const CharT*, const CharT*, const CharT*, const CharT*, CharT, CharT)’: /usr/local/include/boost/lexical_cast.hpp:676:31: error: ‘changesign’ is not a member of ‘boost::math’ /usr/local/include/boost/lexical_cast.hpp:693:31: error: ‘changesign’ is not a member of ‘boost::math’ /usr/local/include/boost/lexical_cast.hpp: In function ‘bool boost::detail::lcast_ret_float(T&, const CharT*, const CharT*)’: /usr/local/include/boost/lexical_cast.hpp:1025:50: error: ‘changesign’ is not a member of ‘boost::math’
I remember having compiled this example some time ago with boost 1.46 or so. Is there some regression in 1.48 that prevents this from compiling?
boost-trunk\boost\math\special_functions\sign.hpp contains changesign function (and implementation in \detail). Could it be that an #include for this file is missing from lexical_cast? Or that providing one in your code will make it work? Paul --- Paul A. Bristow, Prizet Farmhouse, Kendal LA8 8AB UK +44 1539 561830 07714330204 pbristow@hetp.u-net.com