| 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 First Reported In: | git master | ||
| Target Milestone: | --- | ||
| Platform: | Debian testing | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
It is already done ! |
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