U++ framework
Do not panic. Ask here before giving up.

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: 1433
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 Oct 17 06:25:05 GMT+2 2026

Total time taken to generate the page: 0.00618 seconds