I swear, once Microsoft updates their compiler to be compatible with C++1x completely, it will be in year 2020...
Java comes with it because of JVM. .NET is the same story. If there is a VM to C++ like JVM to Java, you would probably get the consistency you get in Java.
EXACTLY how you described my thought! But yeah... If there's a VM for all platforms to C++, then maybe I don't have to worry a thing about this at all. If only Microsoft would create .NET for all platforms available, then I'm in heavens!
You shouldn't compare Java to C++. As far as programming languages go, you really couldn't get more apples to oranges than that. C++ is a native compiled language. If you want a VM language, then just stick to Java.