[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Use of `find' without std:: doesn't give an error
From: |
Fabrice Bauzac |
Subject: |
Use of `find' without std:: doesn't give an error |
Date: |
Sat, 18 Aug 2001 16:09:10 +0200 (CEST) |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/20.7 (i386-debian-linux-gnu) (with unibyte mode) |
Hello,
I'm not sure whether this is really a g++ bug, but here it is:
This file
================
#include <vector>
#include <algorithm>
int
main ()
{
std::vector<bool> v;
v.push_back(true);
v.push_back(false);
find(v.begin(), v.end(), true);
}
================
compiles with no error, although `::find' shouldn't exist.
Have a nice day,
--
fabrice bauzac
Software should be free.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Use of `find' without std:: doesn't give an error,
Fabrice Bauzac <=