I am trying to implement a private struct or class within another struct. Case I works whereas case II is possible after declaration all member variables as public. why so? I am aware that by default all member variables/functions in struct are public and vice versa in a class definition. Now I am a bit confuse why case II don't work? Any thought?
// case I   
struct impl::playlist
{
     struct 
     {
        char name_[30];
     }pod_t;
};
// case II   
struct impl::playlist
{
     class pod_t
     {
        private:
        char name_[30]; // not accessible by impl member func if private 
     };
};
 
    