• Create Account

### #ActualAlanSmithee

Posted 22 April 2012 - 03:30 PM

Thanks for pointing that out guys =)

For clarification: the opertor() function that i posted in the original post was just a wierd attempt of me to try to fix the error (combined with a typo.. (double return true))

the function that i am using and have been using all along with the same result is:
*edit: im gonna edit this in the original post to reflect my actual code

struct cell_cmp
{
bool operator()(const std::shared_ptr<SearchCell>& a, const std::shared_ptr<SearchCell>& b) const
{
return (a->get_f() < b->get_f());
}
};

So, i wish that was the problem but its not =(

### #2AlanSmithee

Posted 22 April 2012 - 03:25 PM

Thanks for pointing that out guys =)

For clarification: the opertor() function that i posted in the original post was just a wierd attempt of me to try to fix the error (combined with a typo.. (double return true))

the function that i am using and have been using all along with the same result is:

struct cell_cmp
{
bool operator()(const std::shared_ptr<SearchCell>& a, const std::shared_ptr<SearchCell>& b) const
{
return (a->get_f() < b->get_f());
}
};

So, i wish that was the problem but its not =(

### #1AlanSmithee

Posted 22 April 2012 - 03:20 PM

OK SirCrane, what you see there is an atempt from me to fix it,

(a->get_f() < b->get_f()

is exactly what ive used before with the same result.

PARTNERS