Bug 56502 - #define when creating a class in a namespace should be different
Summary: #define when creating a class in a namespace should be different
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: git master
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-27 17:43 UTC by Benjamin Piwowarski
Modified: 2003-03-27 18:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 !