Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6186: lexical_cast on vs2005 with wchar_t-
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-17 18:43:05
#6186: lexical_cast on vs2005 with wchar_t-
-------------------------------+--------------------------------------------
Reporter: anonymous | Owner: apolukhin
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: lexical_cast
Version: Boost 1.48.0 | Severity: Problem
Resolution: fixed | Keywords:
-------------------------------+--------------------------------------------
Comment (by apolukhin):
Read [http://www.boost.org/development/submissions.html Boost Library
Submission Process].[[BR]]
If you want to participate, I`m really exited about making boost::variant
work with rvalues/boost::move. [[BR]]
Also. there is a heavy math challenge in lexical_cast (implementing fast
conversions to long doubles and doubles without precision loss):
{{{
/* We need a more accurate algorithm... We can not use current
algorithm
* with long doubles (and with doubles if
sizeof(double)==sizeof(long double)).
*/
long double result = std::pow(10.0L, pow_of_10) * mantissa;
value = static_cast<T>( has_minus ?
(boost::math::changesign)(result) : result);
}}}
If you want something more, read for a few weeks
[http://www.boost.org/community/groups.html#main main developers mailing
list] and try asking for some work there.[[BR]]
[[BR]]
By the way, can you give me some code example, when this warning appears
"converter.hpp(166) : warning C4800: 'int' : forcing value to bool 'true'
or 'false' (performance warning) "? [[BR]]
[[BR]]
Feel free to contact me and ask any questions. (My email can be found at
[http://svn.boost.org/svn/boost/trunk/libs/maintainers.txt maintainers
list] near the "conversion" library)
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6186#comment:20> 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:50:08 UTC