This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: STL headers problem
- To: ncm at cygnus dot com (Nathan Myers)
- Subject: Re: STL headers problem
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Wed, 29 Jul 98 9:05:03 PDT
- Cc: egcs at cygnus dot com
> 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).