[Bug 56502] New: #define when creating a class in a namespace should be different

Benjamin Piwowarski Benjamin.Piwowarski at lip6.fr
Thu Mar 27 17:44:02 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=56502     
           Summary: #define when creating a class in a namespace should be
                    different
           Product: kdevelop
           Version: CVS
          Platform: Debian testing
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: cppsupport
        AssignedTo: kdevelop-devel at kdevelop.org
        ReportedBy: Benjamin.Piwowarski at lip6.fr


Version:           CVS (using KDE KDE 3.1.1)
Installed from:    Debian testing/unstable Packages
OS:          Linux

#define when creating a class in a namespace should be different to avoid classname collision:
for instance

for class N1::A
--------------------

#ifndef N1_A_H
#define N1_A_H
namespace N1 { class A; }

and class N2::A
---------------------

#ifndef N2_A_H
#define N2_A_H
namespace N2 { class A; }
#endif




More information about the KDevelop-devel mailing list