Skip to content

Instantly share code, notes, and snippets.

@xymostech
Created October 26, 2012 02:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xymostech/3956598 to your computer and use it in GitHub Desktop.
Save xymostech/3956598 to your computer and use it in GitHub Desktop.
#ifndef ACOMMON_H
#define ACOMMON_H
#include "BCommon.h"
#include "WorkingClass.h"
#include "BrokenClass.h"
#endif /* ACOMMON_H */
#ifndef BCOMMON_H
#define BCOMMON_H
namespace NamespaceB {
class SuperClass {
};
}
#endif /* BCOMMON_H */
#ifndef BROKENCLASS_H
#define BROKENCLASS_H
namespace NamespaceA
{
class BrokenClass : public NamespaceB::Superclass
{
public:
BrokenClass();
~BrokenClass();
};
}
#endif /* BROKENCLASS_H */
#include "WorkingClass.h"
#include "BrokenClass.h"
int main(int argc, char *argv[]) {
NamespaceA::WorkingClass a;
NamespaceA::BrokenClass b;
return 0;
}
#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