Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Making an unary operator binary

I would like to overload the operator~ but not as an unary operator but as an binary operator so i can do thinks like a~b. is there a way doing this in c++?

like image 841
Exagon Avatar asked Aug 10 '26 17:08

Exagon


1 Answers

There is no way of doing this in C++. Period.

like image 166
Ed Heal Avatar answered Aug 13 '26 08:08

Ed Heal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!