I know the order is different, I wrote the example. You didn't answer my question. Why does automatic template argument deduction work in the first example and not the second?