Es funktioniert, keine Abstürze. Ist das in Ordnung?
edit: Der Grund für meine Frage ist, dass std::string s = "a" + "b" + "c";
erzeugt einen Compilerfehler, und (std::string)"a"
sagt dem Compiler nur: "Nimm einfach an, dass das, worauf "a" zeigt, ein std::string ist". Und ich wusste eigentlich nicht, wie std::string implementiert ist.
Vielen Dank für das Feedback von allen.