Re: A problem with the g++ and template function

2008-03-31 Thread gx
Indeed, I've tried what it told me, but unfortunately with some mistakes. No matter. Thank you a lot for your reply. On 31 Bře, 21:28, Thomas Maeder <[EMAIL PROTECTED]> wrote: > gx <[EMAIL PROTECTED]> writes: > > > template bool find0(const std::vector &v){ > > for(std::vector::const_itera

Re: A problem with the g++ and template function

2008-03-31 Thread Thomas Maeder
gx <[EMAIL PROTECTED]> writes: > > template bool find0(const std::vector &v){ > for(std::vector::const_iterator it=v.begin(); it!=v.end(); + > +it){ > if(!*it) > return true; > } > return false; > } > > > I believe that the problem is