This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/5458] address of overloaded template function as argument for template


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-31 19:06 -------
Here is a simple testcase:
template <class T> class vector{};
template <class T> vector <T> foo(vector <T>) {}
void foo(int) {}
float foo(float) {}
template <class T_arg, class T_result>
void ptr_fun(T_result (*f)(T_arg)) {}
main() { ptr_fun<float>(foo);   }

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5458


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]