This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: error when passing iterator to template function
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: "Daniel Pape" <dpape dot list at gmail dot com>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: 20 Apr 2006 03:40:28 +0200
- Subject: Re: error when passing iterator to template function
- References: <2247a1730604191125p487e8d4bq7f13bf8e4ee2ed79@mail.gmail.com>
"Daniel Pape" <dpape.list@gmail.com> writes:
| template <class T>
| void one(typename std::vector<T>::iterator it)
The template parameter "T" appears in non-deduced context, therefore
the function one() can be used only if the value for "T" is specified
explicitly -- see the other answer.
-- Gaby