Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: