This is a followup to:
How do I put some code into multiple namespaces without duplicating this code?
I need to change the name of a namespace but want to keep backwards compatibility. The above solution suggests that I would have to do what is done there for each and every function:
namespace NewNamespaceName
{
void print()
{
//do work...
}
// 50 other functions
}
namespace OldNameSpaceName
{
using NewNamespaceName::print;
// 50 other using declarations
}
My question: Is there a simpler way to do this?