title: C++ Compile time check if a function called before another one
body: <p>Lets say I have a class with two member functions.</p>
  <pre><code>class Dummy {
   public:
    void procedure_1();
    void procedure_2();
  };
  </code></pre>
  <p><strong>At compile time</strong>, I want to be sure that, <code>procedure_1</code> is called before <code>procedure_2</code>. What is the correct way do implement this?</p>