Re: Peculiar bug when converting int's to std::strings using MSVC 2015

Seth <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
On 08-03-17 09:21, Arash Partow wrote:
> ERROR s1:-4254967296    s2:-40000000
> ERROR s1:-4254967297    s2:-39999999
> ERROR s1:-4254967298    s2:-39999998
> ERROR s1:-4254967299    s2:-39999997
> ERROR s1:-4254967300    s2:-39999996
> ERROR s1:-4254967301    s2:-39999995

Can you specify what the values for i are? Perhaps just replace:

 printf("ERROR
s1:%s\ts2:%s\n",s1.c_str(),s2.c_str());                                                                                                                


With

 std::cout << "Mismatch: i=" << i << " s1=" << s1 << " s2=" << s2 <<
"\n";                                                                                            



------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.