| 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 | ^
| | |
|---|
| 14 | In 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 | ^
| | |
|---|
| 26 | In 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>)’
| | |
|---|