title: Inheritance in templated classes not working
body: <p>I have a templated parent class. </p>
  
  <pre><code>template &lt;class T&gt;
  class Account
  {
  protected:
      T balance;
      int deposits;
      int withdrawals;
      T interestRate;
      T serviceCharges;
      bool status;
  public:
  ...
  </code></pre>
  
  <p>with several functions (some virtual, others not). 
  I then have an inherited class (two actually) below is an example of one such class. There are a handful of errors coming up that I can't seem to solve. </p>
  
  <pre><code>template &lt;class T&gt; 
  class Checking : public Account &lt;T&gt;
  {
  public:
  void withdraw(double amt)
  {
      if (status == false)
      {
          cout &lt;&lt; "Account is inactive.\n\n";
          return;
      }
  
      try
      {
          if (amt &lt; 0)
          throw Account::NegativeAmount();
  
          else if (balance - amt &lt; 25 &amp;&amp; balance - amt &gt; 0)
          {
              cout &lt;&lt; "\nYour account has fallen below $25.00.\n";
              cout &lt;&lt; "It will be deactivated.\n";
              status = false;
          }
  
          else if (balance - amt &lt; 0)
          {
              cout &lt;&lt; "You are attempting to withdraw more than the ";
              serviceCharges += 15.00;
              cout &lt;&lt; "account balance.\n";
          }
          else
              Account::withdraw(amt);  // base class function call
  
          }
      catch (Account::NegativeAmount())
      {
          cout &lt;&lt; "Withdraw positive numbers only.\n";
      }
  }
  };
  </code></pre>
  
  <p>Another error I'm seeing is error for this declaration/line of code:</p>
  
  <pre><code>code: throw Account::NegativeAmount();
  
  error: 'template&lt;class T&gt; class Account' used without template parameters
  </code></pre>
  
  <p>If i attempt to fix it by adding </p>
  
  <pre><code>code: throw Account&lt;T&gt;::NegativeAmount();
  </code></pre>
  
  <p>there is still an error and its not being fixed. </p>