STL headers problem
Joe Buck
jbuck@synopsys.com
Wed Jul 29 09:05:00 GMT 1998
> 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).
More information about the Gcc
mailing list