title: error: 'current_millis' was not declared in this scope
body: <p>What you mean my public class variable was not declared in scope did I not just  declare it in the header file >:(</p>
  
  <p>IDE arduino 1.6.12
  arduino type uno this should not matter just need it to verify</p>
  
  <p><strong><em>timelyCall.cpp</em></strong></p>
  
  <pre><code>#include "Arduino.h"
  #include "timelyCall.h"
  timelyCall::timelyCall() {
    current_millis =  millis();
  }
  
  timelyCall::~timelyCall() {
  </code></pre>
  
  <p><em>there be errors here /</em> </p>
  
  <pre><code>  delete current_millis;
  }
  
  void timelyCall::callEvery(void (&amp;f)(), int ms) {
    if (millis() - current_millis &gt; ms) {
      f();
      current_millis = millis();
    }
  }
  
  void setCurrentMillis() {
    current_millis = millis();
  }
  </code></pre>
  
  <p><strong><em>timelyCall.h</em></strong></p>
  
  <pre><code>class timelyCall {
    public:
      timelyCall();
      ~timelyCall();
      unsigned long current_millis;
      void callEvery(void (&amp;f)(), int ms);
    };
  </code></pre>
  
  <p><strong><em>FullError</em></strong></p>
  
  <pre><code>Arduino: 1.6.12 (Windows 7), Board: "Arduino/Genuino Uno"
  
  sketch\timelyCall.cpp: In destructor 'timelyCall::~timelyCall()':
  
  timelyCall.cpp:8: error: type 'long unsigned int' argument given to 'delete', expected pointer
  
     delete current_millis;
  
            ^
  
  sketch\timelyCall.cpp: In function 'void setCurrentMillis()':
  
  timelyCall.cpp:19: error: 'current_millis' was not declared in this scope
  
     current_millis = millis();
  
     ^
  
  exit status 1
  type 'long unsigned int' argument given to 'delete', expected pointer
  
  This report would have more information with
  "Show verbose output during compilation"
  option enabled in File -&gt; Preferences.
  </code></pre>