This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: STL headers problem



> If your code doesn't mention namespaces, you'll be better off using
> <vector.h> than using <vector> today.  That way when the new libraries
> come out you will change a simple compiler flag to keep your code
> working; otherwise everything breaks.

Actually, if the program says

#include <vector>
using namespace std;

it will work before and after the conversion (since std is currently a
"dummy") and even be portable (however, the user will have to avoid
using any of the names in the std namespace).






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