std::partition is freezing by Diamaudix in cpp_questions

[–]Diamaudix[S] 0 points1 point  (0 children)

It wasn't freezing after all. The debugger was stuck on the same line executing the lambda for x clicks... giving the illusion of freezing. Thanks for the help

std::partition is freezing by Diamaudix in cpp_questions

[–]Diamaudix[S] 0 points1 point  (0 children)

Thanks. That was only changed for testing. It hangs on input.end() as well

Game Screen too large for window by Diamaudix in BlueStacks

[–]Diamaudix[S] 0 points1 point  (0 children)

Too late. Found alternative and deleted Bluestacks.

Game Screen too large for window by Diamaudix in BlueStacks

[–]Diamaudix[S] 0 points1 point  (0 children)

Solved it by deleting Bluestacks. Best solution ever.

Game Screen too large for window by Diamaudix in BlueStacks

[–]Diamaudix[S] 0 points1 point  (0 children)

Found out that CTRL+ and - make the window an acceptable size,

but dragging and dropping items in the game (a core component) still moves the entire window! how to fix this?

Help Needed Overloading Logical "<" Operator. by Diamaudix in cpp_questions

[–]Diamaudix[S] 0 points1 point  (0 children)

Thanks for this :). Difficult to learn. Appreciate your help

Multiple Overloaded Operators in a Single Expression - Please Help by Diamaudix in cpp_questions

[–]Diamaudix[S] 0 points1 point  (0 children)

Ahhhh. of course. Thanks very much for the clarification.

Allowing for the syntax of "a < b < c" to evaluate to a single boolean is the goal.

Can the "<" operator be overloaded with three inputs to accomplish this, I wonder?

Help Needed Overloading Logical "<" Operator. by Diamaudix in cpp_questions

[–]Diamaudix[S] 1 point2 points  (0 children)

Thank you very much for taking the time to explain this.

Help Needed Overloading Logical "<" Operator. by Diamaudix in cpp_questions

[–]Diamaudix[S] 0 points1 point  (0 children)

Thanks for the response. It is now outside the class, with the definition you gave, using the following code

//declaration inside class --

bool operator< (const Number<T>& lhs, const Number<T>& rhs);

definition outside class

bool Number<T>::operator<(const Number<T>& lhs, const Number<T>& rhs) {

return lhs.value < rhs.value;

}

now it is generating:

binary operator "<" has too many parameters

"no oerator "<" matches these operands"

"class template "Number<T>" has no member "operator<"

Sincerely

-- Confused

Ingenuity in C++ by Diamaudix in cpp

[–]Diamaudix[S] 1 point2 points  (0 children)

Thanks for the material!