Anonymous | Login | 2024-11-21 15:27 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 | ||||
0000630 | VCMI | Other | public | 2010-11-06 19:36 | 2011-07-21 20:49 | ||||
Reporter | o01eg | ||||||||
Assigned To | Tow | ||||||||
Priority | high | Severity | block | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | Linux | OS | Gentoo Linux amd64 | OS Version | |||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000630: Cann't compile [trunk r1850] | ||||||||
Description | Graphics.cpp:704: error: no matching function for call to ‘std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)’ /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include/g++-v4/fstream:623: note: candidates are: std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const char*, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>] /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include/g++-v4/fstream:608: note: std::basic_ofstream<_CharT, _Traits>::basic_ofstream() [with _CharT = char, _Traits = std::char_traits<char>] /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.4/include/g++-v4/iosfwd:84: note: std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(const std::basic_ofstream<char, std::char_traits<char> >&) | ||||||||
Additional Information | This string have bug: std::ofstream o("suspicious_" + std::string(name) + ".fnt"); It look as need .c_str() for result std::string to avoid this bug. gcc-4.4.4 | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Notes | |
(0001371) Warmonger (administrator) 2010-11-06 20:33 |
I think you should ask about compilation issues directly on our board. They probably not origin from actual game flaw. |
(0001372) Tow (developer) 2010-11-07 12:19 |
r1851 fixes it. C++0x adds support for constructing ofstream from string, that's why MSVC misled me :) |
Issue History | |||
Date Modified | Username | Field | Change |
2010-11-06 19:36 | o01eg | New Issue | |
2010-11-06 20:31 | Warmonger | Relationship added | related to 0000629 |
2010-11-06 20:33 | Warmonger | Note Added: 0001371 | |
2010-11-07 12:19 | Tow | Note Added: 0001372 | |
2010-11-07 12:19 | Tow | Status | new => resolved |
2010-11-07 12:19 | Tow | Resolution | open => fixed |
2010-11-07 12:19 | Tow | Assigned To | => Tow |
2011-07-21 20:49 | Ivan | Status | resolved => closed |
Copyright © 2000 - 2024 MantisBT Team |