title: Referencing a struct declared in a template class
body: <p>Alright, been at C++ for about 2 days now.  Just done javascript before...</p>
  
  <p>I'm making a template queue using a linked list.  My compiler does not like it when I try to make a new Node struct from withink queue.cpp</p>
  
  <pre><code>//queue.h:
  template &lt;class Object&gt;
  class Queue
  {
   public:
    Queue();                              // Default
    Queue(const Queue&amp; original);         // Copy
  
    ~Queue();                             // Destructor
  
    const Queue&amp; operator=(const Queue&amp; rightHandSide);  //overloaded op
  
    bool isEmpty() const;
  
    bool enqueue(const Object&amp; d);
    bool dequeue(Object&amp; d);
  
   private:
    // Node definition
    struct Node
    {
      Object data;
      Node * next;
    };
    // Queue data members
    Node * front, * back;
  };
  </code></pre>
  
  <p>So, in my copy contructor I need to make a new Node.</p>
  
  <pre><code>//queue.cpp
  template &lt;class Object&gt;
  Queue&lt;Object&gt;::Queue(const Queue&amp; original)
  {
    if (original.isEmpty()) {
      front = back = NULL;
    } else {
      front = back = new Queue::Node;                 //this is line 26
      front-&gt;data = original.front-&gt;data;
      Queue::Node * ptr = original.front-&gt;next;
      while (ptr != NULL) {
        back-&gt;next = new Queue&lt;Object&gt;::Node;
        back = back-&gt;next;
        back-&gt;data = ptr-&gt;data;
        ptr = ptr-&gt;next;
      }
    }
  }
  
  queue.cpp: In copy constructor âQueue&lt;Object&gt;::Queue(const Queue&lt;Object&gt;&amp;)â:
  queue.cpp:26: error: expected type-specifier
  queue.cpp:26: error: expected `;'
  </code></pre>
  
  <p>Any help plz?  Thanks in advance.</p>