Created
October 26, 2012 02:36
-
-
Save xymostech/3956598 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef ACOMMON_H | |
#define ACOMMON_H | |
#include "BCommon.h" | |
#include "WorkingClass.h" | |
#include "BrokenClass.h" | |
#endif /* ACOMMON_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef BCOMMON_H | |
#define BCOMMON_H | |
namespace NamespaceB { | |
class SuperClass { | |
}; | |
} | |
#endif /* BCOMMON_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef BROKENCLASS_H | |
#define BROKENCLASS_H | |
namespace NamespaceA | |
{ | |
class BrokenClass : public NamespaceB::Superclass | |
{ | |
public: | |
BrokenClass(); | |
~BrokenClass(); | |
}; | |
} | |
#endif /* BROKENCLASS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "WorkingClass.h" | |
#include "BrokenClass.h" | |
int main(int argc, char *argv[]) { | |
NamespaceA::WorkingClass a; | |
NamespaceA::BrokenClass b; | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef WORKINGCLASS_H | |
#define WORKINGCLASS_H | |
namespace NamespaceA | |
{ | |
class WorkingClass : public NamespaceB::SuperClass { | |
public: | |
WorkingClass(); | |
~WorkingClass(); | |
}; | |
} | |
#endif /* WORKINGCLASS_H */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment