Bug 56502

Summary: #define when creating a class in a namespace should be different
Product: [Applications] kdevelop Reporter: Benjamin Piwowarski <bpiwowar>
Component: Language Support: CPP (old)Assignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED WORKSFORME    
Severity: wishlist    
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Benjamin Piwowarski 2003-03-27 17:43:01 UTC
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
Comment 1 Benjamin Piwowarski 2003-03-27 18:49:09 UTC
It is already done !