I've been searching for documentation, tutorial, some kind of information regarding proper (well, "nice") means of organizing code within separate files, etc. More specifically, namespace usage. I know how to create a namespace
Code:
namespace vsf {
// code
}
But, what I have is something more like the following:
Code:
namespace vsf {
namespace api {
// api specific code, functions, variables
}
namespace gdi {
// gdi...
}
}
I see this as an easy way to prevent name clashes, not to mention organization. The problem is this file is going to get big after a while (big project). So, why not split it up? I want to first have each 'inner' namespace in its own .h file, defined (all variables and functions), and then an implementation file for each inner namespace that initializes the variables and specifies the function bodies.
I'm not saying I haven't tried to do this. I've tried several times. Each time it ends up with me getting several hundred errors. Usually 'unresolved symbol' or 'duplicate definition', or something to that effect.