title: How to write "nested if...else statement for constants" without warnings, in gnu++11 standard?
body: <p>When I use nested if....else statement with </p>
  
  <pre><code>if (std::is_same&lt;T, T1&gt;::value) 
  {
    // do something
  } 
  else if (std::is_same&lt;T, T2&gt;::value)
  {
    // do something else
  }
  .
  .
  .
  else
  {
    // print error
  }
  </code></pre>
  
  <p>I get a QACPP static code analyzer's compiler warning qacpp-4.2.1-4090 with message "The condition in this 'if' statement is constant." How do I fix this compiler warning in gnu++11 standards ?</p>
  
  <p>NOTE: I'm not an expert at C++ so please excuse me if the question sounds amateur.</p>