title: C++ exception, thow const char* type and catch
body: <p>I am coding using a very simple exception in C++.</p>
  
  <p>but that is not working as i expect.</p>
  
  <p>and i don't know why even though in debugging mode.</p>
  
  <p>i attach a picture that show variable in eclipse debugging mode at the catch point.</p>
  
  <p>i excepted that the code flow will go into <code>if</code> statement but it go into <code>else</code> statement.</p>
  
  <p>as this problem is too simple, i think that i have misunderstood on handling exception, please fix my understanding. </p>
  
  <pre><code>throw "connection fail";
  </code></pre>
  
  <p>.</p>
  
  <pre><code>catch(const char* e){
      if(e == "connection fail"){
          clients.erase(client);
          continue;
      }else{
          std::cout &lt;&lt; e &lt;&lt; std::endl;
          assert(NULL);
      }
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/MHfAj.png" alt="enter image description here"></p>