When programming in C#/Java, I have been often using refactoring like Extract method to make code more readable. I am working on a C++ project now, and due to the absence of IDE support for this type of refactoring (I use Visual Studio 2015), it is quite annoying to manually type all those helper function declarations into header files.
I found a potential solution for that - anonymous namespaces. One challenge may be due to the fact that I would have to pass all class members to functions defined in anonymous namespaces (or pass this
as a parameter to those functions).
I want to understand if I am not using the feature of a language (anonymous namespaces) in a wrong way. Is there any potential problem with the above approach that I am not aware of?