ZayeBeast / labirynt

The simple maze game written in C++ It's a demonstration of git using in a group. There's everything in the Polish language there.
MIT License
1 stars 3 forks source link

Naprawa buildów #24

Closed Nircek closed 6 years ago

Nircek commented 6 years ago

https://travis-ci.com/Nircek/labirynt/builds/85000113

main.cpp: In function ‘void getMap()’:
main.cpp:58:29: error: no matching function for call to ‘std::basic_fstream<char>::open(std::string&, const openmode&)’
 file.open(file_name, ios::in);
                             ^
main.cpp:58:29: note: candidate is:
In file included from main.cpp:5:0:
/usr/include/c++/4.8/fstream:886:7: note: void std::basic_fstream<_CharT, _Traits>::open(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]
       open(const char* __s
       ^
/usr/include/c++/4.8/fstream:886:7: note:   no known conversion for argument 1 from ‘std::string {aka std::basic_string<char>}’ to ‘const char*’

https://github.com/Nircek/labirynt/blob/805cf015dfa1c23e83503509165e490bf62d7243/main.cpp#L17 Wystarczy scastować tego stringa w pierwszym argumencie na const char*a

Nircek commented 6 years ago

@MrDarkness19 naprawisz?

MrDarkness19 commented 6 years ago

naprawiłem w 3dd3231. bez pomocy marcina jestem mondry a michal jest gupi