Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - Invalid namespace??
Hi, While implementing the wrapper for someone else's class, I encountered the following error. Error 'test' is not a member of namespace K. The sample code below will generate the above error message on version 8.28. It seems to me that if K cannot use the same type name as the one defined in N. The code will compile if I change the line typedef N::test test to typedef N::test foo. However, this will cause the explosion of names. namespace N { struct test {}; } namespace K { typedef N::test test; } int main() { K::test a; return 0; } Jun 16 2002
"Steve" <Steve_member pathlink.com> wrote in message news:aejrqj$118q$1 digitaldaemon.com...While implementing the wrapper for someone else's class, I encountered the following error. Error 'test' is not a member of namespace K. Jun 18 2002
|