Using ternary operator in c++ returns false condition always : <p>I am using a statement with ternary operator which is always returning the other value. </p>

<pre><code>BSTR pVal = L"Yes";

bool val = pVal == L"Yes" ? true : false;
</code></pre>

<p>this statement returns </p>

<pre><code> val = false;
</code></pre>

<p>I expect it to return true here. Am i making it wrong?</p>
