Comment Comment by morgenkaffee It is all magic of Clang or GCC. Once you call the template with T1 the C++ compiler will enforce that your passed type supports the <= operator. parent morgenkaffee 10 years ago