title: Warning C26812: Enum type is unscoped. Prefer enum class over enum
body: <p>It is puzzling me as to why am I getting this warning at all. I do not even have enumerations in my entire code?</p>
  <pre><code>#include &lt;SFML/Graphics.hpp&gt;
  #include &lt;vector&gt;
  
  using sf::RenderWindow;
  using sf::VideoMode;
  using sf::Event;
  using std::vector;
  using sf::Vector2f;
  using sf::RectangleShape;
  using sf::CircleShape;
  using sf::Color;
  using sf::Keyboard;
  
  int main()
  {
      RenderWindow window(VideoMode(720, 640), &quot;Shooter game w Projectiles.&quot;);
      window.setFramerateLimit(60);
  
      CircleShape player(50.f);
      player.setFillColor(Color::White);
      player.setPosition((window.getSize().x / 2.f) - (player.getRadius()), (window.getSize().y - player.getRadius() * 2) - 10.f);
  
      CircleShape bullet(5.f);
      bullet.setFillColor(Color::Red);
  
      vector&lt;CircleShape&gt; playerBullets;
      playerBullets.push_back(bullet);
  
      RectangleShape enemy(Vector2f(30.f, 30.f));
      enemy.setFillColor(Color::Magenta);
      enemy.setPosition(320, 200);
  
      vector&lt;RectangleShape&gt; enemies;
      enemies.push_back(enemy);
  
      enemy.setFillColor(Color::Blue);
      enemy.setPosition(160, 100);
      enemies.push_back(enemy);
  
      while (window.isOpen())
      {
          Event event;
          while (window.pollEvent(event))
          {
              if (event.type == Event::Closed)
              {
                  window.close();
              }
          }
  
          if (Keyboard::isKeyPressed(Keyboard::Escape))
          {
              window.close();
          }
  
          // Update
          Vector2f playerCenter = Vector2f(player.getPosition().x + player.getRadius(), player.getPosition().y + player.getRadius());
  
          // Clear
          window.clear();
  
          // Draw
          window.draw(player);
          for (size_t i = 0; i &lt; enemies.size(); ++i)
          {
              window.draw(enemies[i]);
          }
  
          for (size_t i = 0; i &lt; playerBullets.size(); ++i)
          {
              window.draw(playerBullets[i]);
          }
          
  
          // Display
          window.display();
      }
  }
  </code></pre>
  <p>This is the warning that I get: <b>The enum type 'sf::PrimitiveType' is unscoped. Prefer 'enum class' over 'enum' (Enum.3). </b><br />
  It warns me on line number 79, which basically is the new line after the main function closing bracket?</p>