quote:Original post by Fruny
That''s what the anonymous namespace is for.
It''s different.
namespace{ Foo f;}class{private: Foo f1;} Unnamed_class_instance;
Using annoymous namespace, we (the client) can still access f.
But we cannot access f1 if it is inside the private section although the client can access Unnamed_class_instance.