I am getting a compile time for an enum in C++ , the error says Expected a class or namespace

```
  mf.setStatus(MediaFile::SyncStatus::Synced);

```

The enum is defined like this

```
 class MediaFile
 {
    public:
    enum SyncStatus 
    {
        New = 0,
        Remove = 5,
        Synced = 10,
        Unknown = 15
    };

    //...
 };

```

I am compiling in xcode but I guess it has to do with C++ syntax, previously it compiled fine on Visual studio. Visual studio probably gave some warnings about it, but did the build
Any suggestions please ?