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

<pre><code>  mf.setStatus(MediaFile::SyncStatus::Synced);
</code></pre>

<p>The enum is defined like this</p>

<pre><code> class MediaFile
 {
    public:
    enum SyncStatus 
    {
        New = 0,
        Remove = 5,
        Synced = 10,
        Unknown = 15
    };

    //...
 };
</code></pre>

<p>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 ?</p>
