String compare in c++
<p>What is the difference between <code>(x == "x")</code> and <code>("x" == x)</code> comparison in C++? Let's say <code>x</code> is a <code>std::string</code>. Is there any reason why one would be preferred over the other?</p>
