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

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: 14290
Registered: November 2005
Ultimate Member
Thank you!

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


Current Time: Sat Apr 25 14:16:11 GMT+2 2026

Total time taken to generate the page: 0.00481 seconds