OP already said:
> That lets you move the vast majority of java runtime type errors to compile time
That's a huge win.
> That lets you move the vast majority of java runtime type errors to compile time
That's a huge win.
NullPointerException is a run time type error and quite common. I'm not convinced it's a problem C++ adequately solves, though.
I don't think NPEs go much beyond Java's own definition though. If you have a reference to a String, it's not necessarily of type String. You'd get a runtime error if you try to treat it as such, just like you would in Python.
This is not the case in C++, though obviously it's not an example of template metaprogramming.