title: Is there a way to switch on/off std:cerr (or equivalent)?
body: <p>Without using a full-blown logging library (or IF statements) - is there a way in C++ to sometimes print out messages to the console and sometimes not?</p>
  
  <p>I am using <code>std::cerr</code>, is there a way to control when this outputs or not?</p>
  
  <p>Ideally I could have:</p>
  
  <pre><code>std::cerr &lt;&lt; "Constructor called" &lt;&lt; endl;
  </code></pre>
  
  <p>and have a way to enable/disable this line of code?</p>