My templated function look as follows: Code: template void funct(MatTypeOne& m1, MatTypeTwo& m2) { //here I would need to check whether m1 and m2 are of the same "type", //meaning that MatTypeOne is the same as MatTypeTwo } What is the way to check whether m1 and m2 belong to same/different types? Thanks