//Build don't link: #include #include template class Expr { public : Expr(){}; Expr(const T&){}; }; template inline bool compare(const Expr a, const Expr b){ return true; }; int main() { std::vector a(3); std::sort( a.begin(), a.end(), compare ); // ERROR - no matching function }