N
none
I have the following structure in a src folder:
A/X
A/X/x.h
A/X/x.cpp
B/X
B/X/x.h
B/X/x.cpp
where A/X/x.h is:
#ifndef A_X_H
#define A_X_H
namespace A {
class X {
};
}
#endif
And:
where B/X/x.h is:
#ifndef B_X_H
#define B_X_H
namespace B {
class X {
};
}
#endif
But how do I include multiple files with the same name?
I guess this should be possible since that is the whole point with namespaces (to have multiple
types with the same name but located in different namespaces).
A/X
A/X/x.h
A/X/x.cpp
B/X
B/X/x.h
B/X/x.cpp
where A/X/x.h is:
#ifndef A_X_H
#define A_X_H
namespace A {
class X {
};
}
#endif
And:
where B/X/x.h is:
#ifndef B_X_H
#define B_X_H
namespace B {
class X {
};
}
#endif
But how do I include multiple files with the same name?
I guess this should be possible since that is the whole point with namespaces (to have multiple
types with the same name but located in different namespaces).