In my current job, I am seeing variables declared in the unnamed namespace in the cpp file and used only by that class as if they are member variables.
I see it as an interesting way of keeping only interface information in .h and implmentation in .cpp and is less work than the usual pimpl idiom.
I see people using pimpl all the time but never this approach, is there any problem with it?