title: Error Initializing std::array<card,52> for deck of cards
body: <p>I am building a texas holdem game as a project to help learn OOP.  I built tictactoe multiple times with a single class and decided to move on to something a bit more challenging with classes/structs interacting with each other.  I am attempting to simply initialize my deck of cards from my <code>DeckOfCards</code> class in my constructor and I am receiving a syntax error.  Not sure what i'm doing wrong.  Any thoughts?</p>
  
  <p><strong>The error is occurring in the <code>DeckOfCards::DeckOfCards() :</code> initialization</strong></p>
  
  <p><strong>Receiving an error on each Diamonds, Values which says Symbol "Diamonds" could not be resolved, Symbol "Two" could not be resolved..etc..etc</strong></p>
  
  <p><strong>DeckOfCards.cpp</strong></p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "DeckOfCards.h"
  #include "Card.h"
  #include &lt;array&gt;
  
  
  DeckOfCards::DeckOfCards()
  :
      cards_(
          {Diamonds, Two},
          {Diamonds, Three},
          {Diamonds, Four},
          {Diamonds, Five},
          {Diamonds, Six},
          {Diamonds, Seven},
          {Diamonds, Eight},
          {Diamonds, Nine},
          {Diamonds, Ten},
          {Diamonds, Jack},
          {Diamonds, Queen},
          {Diamonds, King},
          {Diamonds, Ace})
  {
  
  }
  </code></pre>
  
  <p><strong>DeckOfCards.h</strong></p>
  
  <pre><code>* DeckOfCards.h
   *
   * 
   *      
   */
  
  #ifndef DECKOFCARDS_H_
  #define DECKOFCARDS_H_
  
  #include &lt;array&gt;
  
  class DeckOfCards
  {
  
      public:
          DeckOfCards();
  
      private:
          std::array&lt;Card,52&gt; cards_;
  
  
  };
  
  #endif /* DECKOFCARDS_H_ */
  </code></pre>
  
  <p><strong>Card.h</strong></p>
  
  <pre><code>* Cards.h
   *
   *  Created on: Jul 8, 2016
   *      Author: TAmend
   */
  
  #ifndef CARD_H_
  #define CARD_H_
  
  struct Card
  {
  
      enum Suit_Type
      {
          Diamonds,
          Hearts,
          Spades,
          Clubs,
      } suit;
  
      enum Value_Type
      {
  
          Two = 2,
          Three = 3,
          Four = 4,
          Five = 5,
          Six = 6,
          Seven = 7,
          Eight = 8,
          Nine = 9,
          Ten = 10,
          Jack = 11,
          Queen = 12,
          King = 13,
          Ace = 14
      } value;
  
      void printCard();
  };
  
  
  
  #endif /* CARD_H_ */
  </code></pre>