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: | 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)
Change History (3)
by , 10 years ago
| Attachment: | warning.log added |
|---|
comment:1 by , 10 years ago
comment:2 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

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