Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
mirek wrote on Tue, 06 February 2018 03:37
Thanks, 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
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Core/SSL crashes at exit on Linux.
Next Topic: Problem with websocket connect method
Goto Forum:
  


Current Time: Sat Apr 27 20:09:10 CEST 2024

Total time taken to generate the page: 0.04592 seconds