Hello, Michael.
Thursday, February 5, 2009 at 11:09:49 PM you wrote:
MF> We're getting off-topic, but I couldn't resist.
We are talking about namespaces, so I think it is good idea to look
around. :)
MF> What happens when I do:
MF> using System.Drawing;
MF> using Microsoft.XNA.Framework;
MF> Point p = new Point(); // Doh!
Good example. But... You have to do something very _special_ if you
want to get the same result inside only 'System' namespace. Isn't it?
I mean what you can use unqualified ids and usings in most cases
without any errors from the compilator _when you use only standard
facilities_.
MF> You see, these problems occur in C# too, and the same answer (from
MF> C++) is given as to how to correct the issue. Make a namespace alias,
MF> or use full qualification.
MF> If you want to use boost, use boost::. If you want to use the STD
MF> library, use std::.
Perfectly! What you can say about following pieces of code:
std::vector