title: Expected a class or namespace; syntax is proper and correct
body: <p>in "dualstk.h"</p>
  
  <pre><code>#ifndef __32_dualstk_h
  #define __32_dualstk_h
  
  #include &lt;deque&gt;
  #include &lt;cstdlib&gt;
  #include &lt;iostream&gt;
  
  using namespace std;
  
  enum stackNumber {One, Two};
  
  template &lt;class T&gt;
  
  class DualStack{
  public:
      DualStack() {count1 = 0; count2 = 0;};
          //constructor. set counts to 0
  
      void push(const T&amp; item, stackNumber n);
      void pop(stackNumber n);
  
      T&amp; top(stackNumber n);
      const T&amp; top(stackNumber n) const;
  
      bool empty(stackNumber n) const;
      int size(stackNumber n) const;
  
  private:
      deque&lt;T&gt; dualstackElements;
      int count1, count2;
  
  };
  
  //error here
  void DualStack::pop(stackNumber n){
  
  }
  
  #endif
  </code></pre>
  
  <p>Any idea why I'm pulling this error? What's strangest is that this is the book "Data Structures with C++ using STL" code and it states that this part is supposed to be correct as we are to simply implement the functions.</p>
  
  <p>When I go to implement a most basic function, I get the error: "Expected a class or namespace."</p>