Loading

Revision differences

Old revision #pux50pe54New revision #pjsdh8fdn
1[SRC] Compiling fios.cpp  1[SRC] Compiling fios.cpp  
2In file included from /home/lordaro/dev/openttd/src/fios.cpp:15:0:  2In file included from /home/lordaro/dev/openttd/src/fios.cpp:15:0:  
3/home/lordaro/dev/openttd/src/fios.cpp: In member function ‘void FileList::BuildFileList(AbstractFileType, SaveLoadOperation)’:    
4/home/lordaro/dev/openttd/src/fios.cpp:79:28: warning: enum constant in boolean context [-Wint-in-bool-context]    
5  assert(fop == SLO_LOAD || SLO_SAVE);    
6                            ^    
7/home/lordaro/dev/openttd/src/stdafx.h:457:35: note: in definition of macro ‘assert’    
8  #define assert(expression) if (!(expression)) error("Assertion failed at line %i of %s: %s", __LINE__, __FILE__, #expression);    
9                                   ^~~~~~~~~~    
10/home/lordaro/dev/openttd/src/fios.cpp: In function ‘void FiosGetFileList(SaveLoadOperation, FiosType (*)(SaveLoadOperation, const char*, const char*, char*, const char*), Subdirectory, FileList&)’:  3/home/lordaro/dev/openttd/src/fios.cpp: In function ‘void FiosGetFileList(SaveLoadOperation, FiosType (*)(SaveLoadOperation, const char*, const char*, char*, const char*), Subdirectory, FileList&)’:  
11/home/lordaro/dev/openttd/src/fios.cpp:400:77: error: no matching function for call to ‘sort(FiosItem*, FiosItem*, <unresolved overloaded function type>)’  11/home/lordaro/dev/openttd/src/fios.cpp:415:72: error: no matching function for call to ‘sort(FiosItem*, const FiosItem*, bool (&)(const FiosItem&, const FiosItem&))’
12   std::sort(file_list.files.Begin(), file_list.files.End(), CompareFiosItems);    
13                                                                             ^    
14In file included from /usr/include/c++/7.1.1/algorithm:62:0,    
15                 from /home/lordaro/dev/openttd/src/core/smallmap_type.hpp:15,    
16                 from /home/lordaro/dev/openttd/src/newgrf_config.h:17,    
17                 from /home/lordaro/dev/openttd/src/fios.h:17,    
18                 from /home/lordaro/dev/openttd/src/fios.cpp:16:    
19/usr/include/c++/7.1.1/bits/stl_algo.h:4826:5: note: candidate: template<class _RAIter> void std::sort(_RAIter, _RAIter)    
20     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)    
21     ^~~~    
22/usr/include/c++/7.1.1/bits/stl_algo.h:4826:5: note:   template argument deduction/substitution failed:    
23/home/lordaro/dev/openttd/src/fios.cpp:400:77: note:   candidate expects 2 arguments, 3 provided    
24   std::sort(file_list.files.Begin(), file_list.files.End(), CompareFiosItems);    
25                                                                             ^    
26In file included from /usr/include/c++/7.1.1/algorithm:62:0,    
27                 from /home/lordaro/dev/openttd/src/core/smallmap_type.hpp:15,    
28                 from /home/lordaro/dev/openttd/src/newgrf_config.h:17,    
29                 from /home/lordaro/dev/openttd/src/fios.h:17,    
30                 from /home/lordaro/dev/openttd/src/fios.cpp:16:    
31/usr/include/c++/7.1.1/bits/stl_algo.h:4856:5: note: candidate: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)    
32     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,    
33     ^~~~    
34/usr/include/c++/7.1.1/bits/stl_algo.h:4856:5: note:   template argument deduction/substitution failed:    
35/home/lordaro/dev/openttd/src/fios.cpp:400:77: note:   couldn't deduce template parameter ‘_Compare’    
36   std::sort(file_list.files.Begin(), file_list.files.End(), CompareFiosItems);    
37                                                                             ^    
38/home/lordaro/dev/openttd/src/fios.cpp:415:72: error: no matching function for call to ‘sort(FiosItem*, const FiosItem*, <unresolved overloaded function type>)’    
39  std::sort(file_list.Get(sort_start), file_list.End(), CompareFiosItems);  5  std::sort(file_list.Get(sort_start), file_list.End(), CompareFiosItems);  
40                                                                        ^  6                                                                        ^  
41In file included from /usr/include/c++/7.1.1/algorithm:62:0,  7In file included from /usr/include/c++/7.1.1/algorithm:62:0,