Boost logo

Boost Users :

Subject: Re: [Boost-users] lexical cast: changesign is not a member of boost::math
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2011-12-18 13:20:39


> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
> Philipp Münzel
> Sent: Saturday, December 17, 2011 11:58 PM
> To: boost-users_at_[hidden]
> 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/reply.cpp
>
> 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_at_[hidden]
 

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net