Re: [Dev-C++] function name conflict
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: DC A <ad...@ho...> - 2007-03-08 17:31:20
|
Per Westermark wrote: >Nothing wrong with using constructors as in: > string a(x); > string b(y); > >Your code will build correctly, if you write: > > string s3 = ::plus(s1,s2); > >You problems is that you got into troubles with the backwards-compatible >work-around: > using std::plus; >in the gcc header files, and needed to specify that you wanted to use your >implementation of plus, and not the implementation already available in >the std namespace. Just a curiousity. Where exactly <string> includes the header file <backward/function.h>? the following line is included in function.h file: using std::plus; I searched the libstdc++ directory with the following command: grep -re "function.h" * But I can't seem to find the connection between function.h and <string> header file. Is it possible to find out the location where function.h is included? _________________________________________________________________ Win a trip for four to a concert anywhere in the world! http://www.mobilelivetour.ca/ |