Anonymous | Login | 2021-01-17 12:38 UTC | ![]() |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000747 | OMNeT++ | simulation kernel | public | 2014-03-22 01:24 | 2014-10-03 09:56 | ||||
Reporter | paolinux | ||||||||
Assigned To | rhornig | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | 4.4.1 | ||||||||
Target Version | Fixed in Version | 4.6 | |||||||
Summary | 0000747: std::to_string method is not available using g++ for Windows (C++11) | ||||||||
Description | Hi there, I've tried to compile my project code using g++ with the -std=c++11 option from with the mingw shell and it fails with the following error: omnetpp-4.4.1/include/simutil.h: In function 'std::string double_to_str(double)': omnetpp-4.4.1/include/simutil.h:366:11: error: 'to_string' is not a member of 'std' This seems to be a well-known bug in Mingw http://stackoverflow.com/questions/12975341/to-string-is-not-a-member-of-std-says-so-g [^] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52015 [^] I wrote a quick patch to solve this (attached below), which simply replace the call to to_string with an ostringstream, but I guess there are cleaner ways to fix this. Thanks, P. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | ![]() | ||||||||
![]() |
|||
Date Modified | Username | Field | Change |
2014-03-22 01:24 | paolinux | New Issue | |
2014-03-22 01:24 | paolinux | File Added: to_string.patch | |
2014-10-03 09:56 | rhornig | Note Added: 0000935 | |
2014-10-03 09:56 | rhornig | Status | new => resolved |
2014-10-03 09:56 | rhornig | Fixed in Version | => 4.6 |
2014-10-03 09:56 | rhornig | Resolution | open => fixed |
2014-10-03 09:56 | rhornig | Assigned To | => rhornig |
Copyright © 2000 - 2021 MantisBT Team |