title: Better way to pass bool variable as parameter?
body: <p>I am wondering if there is a better way to write this for better readability.
  If you have a function like below,</p>
  
  <pre><code>void animal(bool hasFourLegs, bool hasHead, bool hasBody);
  </code></pre>
  
  <p>When you call the function, you will end up with something like</p>
  
  <pre><code>animal(true, false, true);
  </code></pre>
  
  <p>and this makes me go take a look at the definition every time I encounter function like this.</p>
  
  <p>SO...</p>
  
  <p>I do something like this!</p>
  
  <pre><code>const bool HAS_FOURLEGS = true;
  const bool NO_HEAD = false;
  const bool HAS_BODY = true;
  
  animal(HAS_FOURLEGS, NO_HEAD, HAS_BODY);
  </code></pre>
  
  <p>But I do not like to declare <code>const bool</code> every time I call the function.</p>
  
  <p>It seems like CPP does not support something like</p>
  
  <pre><code>animal(bool hasFourlegs = true, bool hasHead = false, bool hasBody = true);
  </code></pre>
  
  <p>Is there any better and shorter way?</p>