Opened 10 years ago

Closed 10 years ago

#7116 closed Bugs (fixed)

Conversion from float/double to string gives C4996 warning in VS2010

Reported by: sebi707@… Owned by: Antony Polukhin
Milestone: To Be Determined Component: lexical_cast
Version: Boost 1.50.0 Severity: Cosmetic
Keywords: Cc:

Description

If I try to convert a float or double to std::string using the new 1.50.0 version I get very long warning in VS2010.

Minimal example:

#include <iostream>
#include <boost/lexical_cast.hpp>

using namespace std;

int main()
{
  cout << boost::lexical_cast<string>(3.1415f) << endl;
}

Attachments (1)

warning.log (2.0 KB ) - added by sebi707@… 10 years ago.

Download all attachments as: .zip

Change History (3)

by sebi707@…, 10 years ago

Attachment: warning.log added

comment:1 by Antony Polukhin, 10 years ago

(In [79565]) Workaround VC warning (refs #7116)

comment:2 by Antony Polukhin, 10 years ago

Resolution: fixed
Status: newclosed

(In [79605]) Merge fix of VC warning (fixes #7116)

Note: See TracTickets for help on using tickets.