How can the C++ statement below even compile? Since "1" and "2" are strings (not even chars).<p><pre><code> std::vector<int> v = {"1", "2"} // UB
</code></pre>
Rather than undefined behavior I'd expect a type violation error. But my C++ has gotten a bit rusty.