Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7704: lexical_cast to filesystem::path fails for string::length > 22
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-21 21:17:44
#7704: lexical_cast to filesystem::path fails for string::length > 22
-----------------------------------------------------+----------------------
Reporter: Braden McDaniel <braden@â¦> | Owner: apolukhin
Type: Bugs | Status: new
Milestone: To Be Determined | Component: lexical_cast
Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------------------------+----------------------
Comment (by apolukhin):
Try this code:
{{{
#include <sstream>
#include <boost/filesystem/path.hpp>
int main()
{
boost::filesystem::path p;
std::istringstream s1("aaaaaaaaaaaaaaaaaaaaaaa");
s1 >> p;
if (s1.get() != std::char_traits<char>::eof())
return EXIT_FAILURE;
return 0;
}
}}}
If it exits with `EXIT_FAILURE`, then it is a bug in libc++
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7704#comment:4> 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:11 UTC