This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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]

Re: error when passing iterator to template function


"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


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