MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000630VCMIOtherpublic2010-11-06 19:362011-07-21 20:49
Reportero01eg 
Assigned ToTow 
PriorityhighSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSGentoo Linux amd64OS Version
Product Version 
Target VersionFixed in Version 
Summary0000630: Cann't compile [trunk r1850]
DescriptionGraphics.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 InformationThis 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
TagsNo tags attached.
Attached Files

- Relationships
related to 0000629closedIvan Cann't compile VCMI [trunk r1834] 

-  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

Site | Forums | Wiki | Slack | GitHub


Copyright © 2000 - 2024 MantisBT Team
Hosting provided by DigitalOcean