namespace bug
Volker Wysk <[email protected]> Fri, 11 Jul 2003 21:23:14 +0200 (CEST)
| Newsgroups | gmane.comp.gcc.cgicc.bugs |
|---|---|
| Message-ID | <Pine.LNX.4.31.0307112116110.1637-100000@volker> |
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.