bug-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-cgicc] namespace bug


From: Volker Wysk
Subject: [bug-cgicc] namespace bug
Date: Fri, 11 Jul 2003 21:23:14 +0200 (CEST)

Hello

In MStreamable.h, the following is defined inside the cgicc namespace:

CGICC_API STDNS ostream&
operator<<(STDNS ostream& out, const MStreamable& obj);

Thus, when using "using namespace cgicc;", and not using "using namespace
std" this operator<< shadows any other operator<<'s, even for different
argument types. That's is the normal C++ name finding procedure.

The operator<< should be defined outside any namespaces.

Regards,
V.W.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]