Home » U++ Library support » U++ Core » Bug with FindMatch(const Range& r, const C& match, int from = 0)
Re: Bug with FindMatch(const Range& r, const C& match, int from = 0) [message #49413 is a reply to message #49408] |
Tue, 06 February 2018 16:31 |
Novo
Messages: 1358 Registered: December 2006
|
Ultimate Contributor |
|
|
mirek wrote on Tue, 06 February 2018 03:37Thanks, fixed.
Anyway, I am intrigued why this was not causing problems? FindMatch is used in FindIndex and that one is used quite intensely, so e.g. theide should not compile...
What compiler are you using?
Mirek
gcc 7.2.0
FindIndex looks like below.
template <class Range, class V>
int FindIndex(const Range& r, const V& value, int from = 0)
{
for(int i = from; i < r.GetCount(); i++)
if(r[i] == value) return i;
return -1;
}
FindMatch is not used there.
Actually, I couldn't find even a single use of FindMatch in Upp ...
Regards,
Novo
|
|
|
|
|
Bug with FindMatch(const Range& r, const C& match, int from = 0)
By: Novo on Tue, 06 February 2018 05:00
|
|
|
Re: Bug with FindMatch(const Range& r, const C& match, int from = 0)
By: mirek on Tue, 06 February 2018 09:37
|
|
|
Re: Bug with FindMatch(const Range& r, const C& match, int from = 0)
By: Novo on Tue, 06 February 2018 16:31
|
|
|
Re: Bug with FindMatch(const Range& r, const C& match, int from = 0)
By: mirek on Tue, 06 February 2018 17:17
|
Goto Forum:
Current Time: Sat Apr 27 20:09:10 CEST 2024
Total time taken to generate the page: 0.04592 seconds
|