I'm trying to solve the problem here but I don't know why my code isn't working. Any help is appreciated. EDIT: Edited to make correction mentioned below, but there ...
Can I compare three variables like the following, instead of doing if((x==y)&&(y==z)&&(z=x))? [The if statement should execute if all three variables have the same value. These are booleans.]
Let's say I have a function template as follows: template foo { ... } However, I'd like to have different behavior if T == U. How can I check that? Will it work as desired if I add the following specialization? template foo { ... } Thanks, Joseph