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 » Algo.h rev6429 small bug
Algo.h rev6429 small bug [message #40964] Mon, 14 October 2013 19:56 Go to next message
hans is currently offline  hans
Messages: 44
Registered: March 2006
Location: Germany
Member
Should be obviously:
int q = FindMin(c);

template <class C>
int Min(const C& c, const typename C::ValueType& def)
{
int q = FindMax(c);
return q < 0 ? def : c[q];
}

[Updated on: Mon, 14 October 2013 19:56]

Report message to a moderator

Re: Algo.h rev6429 small bug [message #40971 is a reply to message #40964] Wed, 16 October 2013 07:46 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thank you!

Mirek
Previous Topic: Link problem on linux
Next Topic: SetLanguage + Rus
Goto Forum:
  


Current Time: Fri Mar 29 07:34:10 CET 2024

Total time taken to generate the page: 0.01427 seconds