[haiku-development] Re: C++ Question w/ Templates and std::lower_bound

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 23 Jul 2020 17:51:46 -0400

On Thu., Jul. 23, 2020, 16:09 Andrew Lindesay, <apl@xxxxxxxxxxxxxx> wrote:

Would this be the reason why the `lower_bound` function is not found?
Just to eliminate the obvious, you have included the <algorithm>
header, correct?

Oh dear; you are quite right.  Thank you.  I did not pick up on that
because the compiler presented a candidate function that was apparently not
matched based on the argument types.  It seems quite strange that it is
able to do that or strange that it found any candidates.


Welcome to GCC's astoundingly unhelpful error messages, especially wherever
templates come into play ;-)

Regards,

Rene


Other related posts: