public
Created

  • Download Gist
Acommon.h
C
1 2 3 4 5 6 7 8 9
#ifndef ACOMMON_H
#define ACOMMON_H
 
#include "BCommon.h"
 
#include "WorkingClass.h"
#include "BrokenClass.h"
 
#endif /* ACOMMON_H */
Bcommon.h
C++
1 2 3 4 5 6 7 8 9
#ifndef BCOMMON_H
#define BCOMMON_H
 
namespace NamespaceB {
class SuperClass {
};
}
 
#endif /* BCOMMON_H */
BrokenClass.h
C++
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#ifndef BROKENCLASS_H
#define BROKENCLASS_H
 
namespace NamespaceA
{
class BrokenClass : public NamespaceB::Superclass
{
public:
 
BrokenClass();
~BrokenClass();
};
}
 
 
#endif /* BROKENCLASS_H */
WorkingClass.h
C++
1 2 3 4 5 6 7 8 9 10 11 12 13
#ifndef WORKINGCLASS_H
#define WORKINGCLASS_H
 
namespace NamespaceA
{
class WorkingClass : public NamespaceB::SuperClass {
public:
WorkingClass();
~WorkingClass();
};
}
 
#endif /* WORKINGCLASS_H */
main.cpp
C++
1 2 3 4 5 6 7 8
#include "WorkingClass.h"
#include "BrokenClass.h"
 
int main(int argc, char *argv[]) {
NamespaceA::WorkingClass a;
NamespaceA::BrokenClass b;
return 0;
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.