I'm working on a project where a mixture of C# (95%) and C++/CLI (5%) are used.
The namespace naming convention I'm aiming for is the good old Company.Technology.Etc.
. This works perfectly fine for C#. Now, can I carry this across to C++ classes? I read here that compound namespaces aren't supported in C++.
Am I stuck with the clumsy
namespace Company {
namespace Technology {
namespace Etc {
...
}
}
}
in order to stay consistent?
Is it worth trying to stay consistent?
Yes, you're stuck with it, see this link. In my opinion it's worth using it as it is more readable and manageable to use namespaces. I normally do so in native C++ also.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With