KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'd expect in the example bellow compiler will fail to compile the code, since it doesn't know what is "find()", which defined in std namespace in algorithm header. However this code compiles on RHEL 5.3 with gcc 4.1.2. What do I miss? #include <string> #include <algorithm> int main() { std::string s; find(s.begin(), s.end(), 'a'); // should not compile }
Tags (comma-separated)
Save Edits
Cancel