"Xin Wang" <wa****@engr.orst.edu> wrote in message
news:Pi*******************************@flop.ENGR.O RST.EDU...
I had an earlier version of stl, which is smaller and much more fit to my
needs, the problem is that I found many definitions in it such as
iterator conflict with std namespace.
Does the earlier version place its names in the std namespace?
Is there any way to work around this, or I have to call either one or them
with explicit namespace?
Let me guess. You have:
using namespace std;
in all your source files, or (worse) in your headers. The whole idea of
namespaces is to handle situations exactly like the one you have. You'd be
in a much worse situation without them. Using the explicit qualification
std:: where necessary is one option that would work very well, as long as
only one of your STL versions is in the std namespace. You could also wrap
the earlier version in your own namespace and use explicit qualifications
for that.
DW