You cannot if you save the .cpp file.
Otherwise, you can, but you are essentially just deleting the .cpp file.
In your .h file, you can:
namespace Space{ class Something{ void method() {
In addition, as you know, there will be restrictions as to where you might include the headline.
I'm not sure this will help you, OP, as you seem to know what you are doing, but I will include it for future users of the question:
What should be in the .h file?
source share