I would like to implement a Containerclass that can only be accessed by the classes I want, in a way similar to the following
class ContainerAccess {
    // empty 
};
class Container{
  private:
    static void _do_stuff();
    static int _value;
    friend class ContainerAccess;
};
Now I want to have access to the Container data as follows:
class Processor: public ContainerAccess {
  public:
    void proccess() {
      Container::_do_stuff();
      Container::_value++;
    }
};
However, this does not work. Why is that? And how could that be done?
 
     
    